*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* Brand Logo Styles */
.brand-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 2000;
    pointer-events: none;
    padding: 15px;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(59, 130, 246, 0.2);
    z-index: -3;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1), 
        rgba(34, 211, 238, 0.1), 
        rgba(59, 130, 246, 0.1));
    border-radius: 22px;
    z-index: -4;
    opacity: 0.5;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
    padding: 10px 20px;
}

/* Lightning/Electricity Effect - Following Logo Outline */
.logo-text::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        transparent 20%,
        rgba(59, 130, 246, 0.3) 25%,
        #3b82f6 30%,
        #22d3ee 35%,
        #06b6d4 40%,
        #3b82f6 45%,
        #22d3ee 50%,
        #3b82f6 55%,
        rgba(59, 130, 246, 0.3) 60%,
        transparent 65%,
        transparent 100%);
    background-size: 400% 100%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: lightningFlow 1.5s linear infinite;
    z-index: -1;
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.9),
        0 0 20px rgba(34, 211, 238, 0.7),
        0 0 30px rgba(59, 130, 246, 0.5),
        inset 0 0 10px rgba(59, 130, 246, 0.4);
}

.logo-text::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 17px;
    padding: 2px;
    background: linear-gradient(270deg, 
        transparent 0%,
        transparent 30%,
        rgba(34, 211, 238, 0.3) 35%,
        #22d3ee 40%,
        #3b82f6 45%,
        #22d3ee 50%,
        #3b82f6 55%,
        rgba(34, 211, 238, 0.3) 60%,
        transparent 65%,
        transparent 100%);
    background-size: 400% 100%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: lightningFlow 1.2s linear infinite reverse;
    z-index: -2;
    opacity: 0.6;
    filter: blur(1.5px);
    box-shadow: 
        0 0 15px rgba(34, 211, 238, 0.6),
        0 0 25px rgba(59, 130, 246, 0.4);
}

@keyframes lightningFlow {
    0% {
        background-position: -300% 0;
        opacity: 0.8;
    }
    25% {
        opacity: 1;
    }
    50% {
        background-position: 0% 0;
        opacity: 0.9;
    }
    75% {
        opacity: 1;
    }
    100% {
        background-position: 300% 0;
        opacity: 0.8;
    }
}


@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


.logo-p {
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    animation: logoPulse 2s ease-in-out infinite;
}

.logo-videv {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo-design {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 600;
    margin-left: 5px;
    opacity: 0.9;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: logoGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8));
    }
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.container{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f5f5f5;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    z-index: 1;
}

.container .slide .item{
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: inline-block;
    transition: 0.5s;
    overflow: hidden;
}

.slide .item:nth-child(1),
.slide .item:nth-child(2){
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Следващите слайдове - по-прозрачни и по-долу в дясно */
.slide .item:nth-child(3){
    top: auto;
    bottom: 80px;
    left: 50%;
    transform: translate(0, 0);
    opacity: 0.4;
}

.slide .item:nth-child(4){
    top: auto;
    bottom: 80px;
    left: calc(50% + 320px);
    transform: translate(0, 0);
    opacity: 0.4;
}

.slide .item:nth-child(5){
    top: auto;
    bottom: 80px;
    left: calc(50% + 640px);
    transform: translate(0, 0);
    opacity: 0.4;
}

/* here n = 0, 1, 2, 3,... */
.slide .item:nth-child(n + 6){
    top: auto;
    bottom: 80px;
    left: calc(50% + 960px);
    transform: translate(0, 0);
    opacity: 0.4;
}

.item .content{
    position: absolute;
    top: 50%;
    left: 150px;
    width: 650px;
    max-width: 80%;
    text-align: left;
    color: #fff;
    transform: translate(0, -50%);
    font-family: 'Inter', system-ui, sans-serif;
    display: none;
    background: rgba(15, 23, 42, 0.8);
    padding: 50px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide .item:nth-child(2) .content{
    display: block;
}

.content .name{
    font-size: 48px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
    margin-bottom: 20px;
    color: #3b82f6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.content .des{
    margin-top: 15px;
    margin-bottom: 25px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
    line-height: 1.7;
    font-size: 18px;
    color: #e2e8f0;
}

.content .tech{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.5s 1 forwards;
}

.content .tech span{
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.content .btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    opacity: 0;
    animation: animate 1s ease-in-out 0.6s 1 forwards;
}

.content .btn{
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    text-align: center;
    white-space: nowrap;
}

.content .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.content .btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.content .btn-secondary {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.content .btn-secondary:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 211, 238, 0.6);
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

@keyframes animate {
    from{
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to{
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.button{
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 150px;
    left: 0;
    z-index: 2000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.button button {
    pointer-events: all;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
    font-size: 22px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.button button:hover{
    background: rgba(37, 99, 235, 1);
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.button button:active{
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .item .content {
        left: 50px;
        width: 450px;
        padding: 30px;
        max-width: calc(100vw - 100px);
    }
    
    .content .name {
        font-size: 36px;
    }
    
    /* Подобряване на видимостта на изображенията на таблет */
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .slide .item:nth-child(3),
    .slide .item:nth-child(4),
    .slide .item:nth-child(5),
    .slide .item:nth-child(n + 6) {
        opacity: 0.3;
        width: 150px;
        height: 225px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    /* Осигуряване че изображенията се виждат */
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    .item .content {
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 100%;
        padding: 25px;
        top: auto;
        bottom: 120px;
        transform: translate(0, 0);
    }
    
    .content .name {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .content .des {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .content .tech {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .content .tech span {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .content .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .content .btn {
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    /* Скриване на следващите слайдове на мобилни */
    .slide .item:nth-child(3),
    .slide .item:nth-child(4),
    .slide .item:nth-child(5),
    .slide .item:nth-child(n + 6) {
        display: none;
    }
    
    .button {
        bottom: 80px;
        gap: 15px;
    }
    
    .button button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .item .content {
        left: 15px;
        right: 15px;
        width: calc(100% - 30px);
        padding: 20px;
        bottom: 100px;
    }
    
    .content .name {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .content .des {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .content .tech span {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .content .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .button {
        bottom: 70px;
        gap: 12px;
    }
    
    .button button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* Осигуряване че изображенията се виждат на малки екрани */
    .slide .item:nth-child(1),
    .slide .item:nth-child(2) {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.header-brand h1 {
    font-size: 1.5rem;
    color: #3b82f6;
    margin: 0;
    font-weight: 700;
}

.header-tagline {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 5px 0 0 0;
}

.header-credits {
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .header-credits {
        display: none;
    }
}

.header-credits p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.header-credits strong {
    color: #3b82f6;
}

/* Navigation Menu Styles */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: #3b82f6;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.mobile-nav-header h2 {
    color: #3b82f6;
    font-size: 1.3rem;
    margin: 0;
}

.mobile-nav-close {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: #3b82f6;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-nav-link {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding-left: 30px;
}

/* Footer Styles */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-credits {
    font-size: 0.8rem;
    color: #64748b;
}

.footer-credits strong {
    color: #3b82f6;
}

/* Adjust container for footer */
.container {
    margin-top: 0;
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-brand {
        flex: 1;
        min-width: 150px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-credits {
        text-align: center;
        order: 2;
        width: 100%;
    }
    
    .header-brand h1 {
        font-size: 1.2rem;
    }
    
    .header-tagline {
        font-size: 0.75rem;
    }
    
    .header-credits p {
        font-size: 0.8rem;
    }
    
    .footer-content p {
        font-size: 0.75rem;
    }
    
    .brand-logo {
        top: 15px;
        left: 15px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-p {
        font-size: 1.8rem;
    }
    
    .logo-design {
        font-size: 1.1rem;
    }
    
    .logo-glow {
        width: 120px;
        height: 120px;
    }
    
    .container {
        margin-top: 0;
        margin-bottom: 120px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3002;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(37, 99, 235, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Make items clickable */
.slide .item {
    cursor: pointer;
}

.slide .item .content {
    pointer-events: none;
}

.slide .item .content * {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .modal-close {
        top: -45px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .modal-content img {
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 98%;
        max-height: 80%;
    }
    
    .modal-close {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-content img {
        max-height: 80vh;
    }
}
