﻿

html, body {
   overflow-x: hidden;
   width: 100%;
   margin: 0;
   padding: 0;
   position: relative;
}

* {
   box-sizing: border-box;
   max-width: 100%;
}

img, video, iframe {
   max-width: 100%;
   height: auto;
}

.container, .box-container, section {
   width: 100%;
   max-width: 100%;
   padding-left: 1rem;
   padding-right: 1rem;
   margin-left: auto;
   margin-right: auto;
}

@media (max-width: 768px) {
   .row, .grid {
      flex-direction: column;
   }
   
   .box-container {
      padding: 0 1rem;
   }
   
   iframe.map {
      width: 100% !important;
   }
}

.skip-nav {
   position: absolute;
   top: -40px;
   left: 6px;
   background: #b30ce6;
   color: white;
   padding: 8px;
   text-decoration: none;
   border-radius: 4px;
   z-index: 1000;
   font-size: 14px;
}

.skip-nav:focus {
   top: 6px;
}

button:focus, a:focus, input:focus, textarea:focus, select:focus {
   outline: 3px solid #b30ce6;
   outline-offset: 2px;
}

.btn:focus {
   outline: 3px solid #fff;
   outline-offset: 2px;
}

.hero-modern {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    filter: contrast(1.1) brightness(0.9);
}

@media (max-width: 768px) {
    .hero-video-bg {
        display: block !important;
        object-position: center;
        filter: contrast(1.05) brightness(0.95);
    }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .particle {
        animation: none !important;
    }
    
    .hero-title span {
        animation-duration: 0.5s !important;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(179, 12, 230, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(179, 12, 230, 0.2) 100%
    );
    z-index: -1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(179, 12, 230, 0.6);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

.hero-content-inner {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
    position: relative;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease-out;
}

.title-line.featured {
    background: linear-gradient(135deg, #b30ce6, #ff6b9d, #00f2fe);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 1s ease-out, gradientShift 3s ease-in-out infinite;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-cta {
    margin-bottom: 4rem;
    animation: fadeIn 2s ease-out 1s both;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-text {
    position: relative;
    z-index: 3;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #b30ce6, #ff6b9d);
    transition: left 0.4s ease;
    z-index: 1;
}

.cta-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #b30ce6, #ff6b9d, #00f2fe);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-button:hover .cta-bg {
    left: 0;
}

.cta-button:hover .cta-glow {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(179, 12, 230, 0.4);
}

.floating-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    animation: floatCard 3s ease-in-out infinite;
    animation-delay: var(--delay);
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(179, 12, 230, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(179, 12, 230, 0.3);
}

.tech-card i {
    font-size: 1.2rem;
    color: #b30ce6;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 3s ease-out 2s both;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #b30ce6, transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.slide-in-on-scroll {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1), transform 1.6s cubic-bezier(.4,0,.2,1);
}

.slide-in-on-scroll.about-animate {
  transform: translateX(-80px);
}

.slide-in-on-scroll.slide-in-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
    .hero-content-inner {
        padding: 2rem 1rem;
    }
    
    .floating-elements {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .tech-card {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .particles {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content-wrapper {
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}
