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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #0ea5e9 100%);
    min-height: 100vh;
    transition: background 1s ease;
}

body.dark-theme {
    background: #000 !important;
}

body.dark-theme .animated-bg {
    background: none !important;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease;
}

body.dark-theme #starfield {
    opacity: 1;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

.animated-bg {
    background: linear-gradient(30deg, #0f172a, #1e3a8a, #0ea5e9, #1e40af);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.no-drag {
    -webkit-user-drag: none;
    user-drag: none;
}

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

.glass {
    background: rgba(255, 255, 255, 0.01); 
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 8s ease-in-out infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.border-light {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.border-light::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 2.0px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--angle),
        transparent 1%,
        rgba(255, 255, 255, 0.6) 90%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: flow-border 6s linear infinite alternate;
}

@keyframes flow-border {
    0% { --angle: 0deg; }
    100% { --angle: 360deg; }
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glow {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3),
                0 0 40px rgba(30, 58, 138, 0.2);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.social-icon {
    animation: pulse-glow 3s ease-in-out infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.blob {
    animation: morph 8s ease-in-out infinite;
}

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

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.text-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-hidden {
    opacity: 0;
    transform: translateY(-80px); 
    pointer-events: none; 
}

.project-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    animation: marquee-horizontal 40s linear infinite;
    gap: 1rem;
}

@keyframes marquee-horizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.logo-item:hover {
    transform: scale(1.1) rotate(5deg);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.current-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

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

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

.project-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.ultra-glow {
    border: 1px solid rgba(14, 165, 233, 0.5) !important;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.badge-premium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 99px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .current-project-grid {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: stretch;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .project-card {
        flex: 1;
        min-width: 0;
        padding: 1rem;
        max-width: calc(33.333% - 0.67rem);
    }

    .project-card img {
        height: 80px;
        width: auto;
        max-width: 100%;
    }

    .project-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}
/* ---------- WISHLIST BOOKS ---------- */
/* ---------- НОВЫЙ ДИЗАЙН WISHLIST ---------- */
/* Ебейшие карточки */
.wish-book {
    position: relative;
    display: flex;
    gap: 1.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2rem;
    padding: 1.25rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.wish-book::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 2px; /* толщина обводки */
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent, rgba(59, 130, 246, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.wish-book:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.02) translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

.wish-book img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.5);
    transition: all 0.5s;
}

.wish-book:hover img {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 15px 15px 30px rgba(0,0,0,0.6);
}

.wish-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    cursor: copy;
    transition: 0.3s;
}

/* Эффект успешного копирования */
.copy-success {
    animation: bounce 0.5s ease;
    color: #4ade80 !important;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Кастомный скролл */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: linear-gradient(to bottom, #3b82f6, #a855f7);
    border-radius: 10px; 
}
/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #wishlist-modal .glass-dark {
    border-radius: 1.5rem;
    height: 95vh;
  }

  .wish-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wish-book img {
    width: 120px;
    height: 160px;
  }

  .wish-title {
    font-size: 1.2rem;
  }
}
/* ===== macOS WINDOW BUTTONS ===== */
.mac-btn {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}

/* colors */
.mac-btn.red { background: #ff5f57; }
.mac-btn.yellow { background: #febc2e; }
.mac-btn.green { background: #28c840; }

/* icons always visible */
.mac-btn::after {
  content: '';
  position: absolute;
  inset: 3px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.8;
}

.mac-btn.red::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 2l6 6M8 2L2 8' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}

.mac-btn.yellow::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5h6' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E");
}

.mac-btn.green::after {
  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 8l6-6M6 2h2v2' stroke='black' stroke-width='1.5' fill='none'/%3E%3C/svg%3E\");
}

/* hover micro-effect (очень мягкий) */
.mac-btn:hover {
  filter: brightness(1.1);
}

/* Обновленный фон модального окна для эффекта "Frost" */
#wishlist-modal .glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Стиль карточки книги */
.wish-book {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2.5rem; /* Более скругленные углы как на скрине */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.wish-book:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Картинка (обложка) */
.wish-book img {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Заголовок книги */
.wish-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    transition: color 0.3s;
}

.wish-book:hover .wish-title {
    color: #fff;
}

/* Кнопки WB / OZON */
.wish-book a {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.wish-book a:hover {
    background: #fff;
    color: #000 !important;
    transform: translateY(-2px);
}
