/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #00d4ff;
    background-color: #000814;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #e5e7eb;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #001d3d 0%, #000814 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video #hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.video-sound-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-left: 1rem;
}

.video-sound-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.video-sound-btn:active {
    transform: scale(0.95);
}

.sound-icon {
    transition: transform 0.2s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    margin-bottom: 1rem;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    opacity: 0.8;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #f8fafc;
}

/* About Section */
.about {
    background: #001d3d;
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #00d4ff;
}

.skill-bar {
    height: 8px;
    background: #003566;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 1s ease-out;
    width: 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #001d3d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #003566;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #001d3d 0%, #000814 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
}

.project-content p {
    color: #cbd5e1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #1e40af;
    color: #dbeafe;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #3b82f6;
}

/* Recent Projects Section */
.recent-projects {
    background: #0f172a;
    padding: 100px 0;
}

/* Projects Slider */
.projects-slider {
    position: relative;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.slider-container {
    position: relative;
    border-radius: 10px;
    min-height: 500px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: 10px;
    pointer-events: none;
}

.project-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.project-image {
    flex: 1;
    min-width: 45%;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.project-content {
    flex: 1;
    color: #cbd5e1;
}

.project-content h3 {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #cbd5e1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.5);
}

.project-link {
    display: inline-block;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #00d4ff;
    transform: translateX(5px);
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #00d4ff;
    font-size: 4rem;
    width: auto;
    height: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.slider-btn:hover {
    color: #fbbf24;
    transform: translateY(-50%) scale(1.2);
}

.slider-prev {
    left: -70px;
}

.slider-next {
    right: -70px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(203, 213, 225, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #00d4ff;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    .project-slide {
        flex-direction: column;
        padding: 2rem;
    }
    
    .project-image {
        min-width: 100%;
    }
    
    .project-content h3 {
        font-size: 1.5rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Cooperation Section */
.cooperation {
    background: #001d3d;
    padding: 100px 0;
}

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

.cooperation-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cooperation-content .lead-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
}

.cooperation-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.cooperation-list li {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.cooperation-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #fbbf24;
    font-weight: bold;
}

/* Contact Section */
.contact {
    background: #001d3d;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.contact-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #000814;
    border-radius: 8px;
    text-decoration: none;
    color: #00d4ff;
    transition: all 0.3s ease;
    border: 1px solid #003566;
}

.contact-method:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-form {
    background: #000814;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #003566;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #003566;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #001d3d;
    color: #00d4ff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #000814;
    color: #00d4ff;
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0f172a;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #60a5fa;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.tl-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.tl-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background: #60a5fa;
    border: 4px solid #1e293b;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #1e293b;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #1e293b;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #1e293b;
    border-width: 10px 10px 10px 0;
    border-color: transparent #1e293b transparent transparent;
}

.right::after {
    left: -16px;
}

.tl-content {
    padding: 20px 30px;
    background: #001d3d;
    position: relative;
    border-radius: 6px;
    border: 1px solid #003566;
}

.tl-content h3 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tl-content p {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .tl-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .tl-container::before {
        left: 60px;
        border: medium solid #1e293b;
        border-width: 10px 10px 10px 0;
        border-color: transparent #1e293b transparent transparent;
    }
    
    .left::after, .right::after {
        left: 15px;
    }
    
    .right {
        left: 0%;
    }
}

/* Companies Section */
.companies {
    padding: 100px 0;
    background: linear-gradient(135deg, #000814 0%, #001d3d 100%);
}

.companies .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.companies .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
}

.companies-category {
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.companies-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    color: #00d4ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 200px;
    text-align: center;
    flex-shrink: 0;
}

.companies-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem 3rem;
    flex: 1;
}

.company-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
}

.company-logo {
    width: 120px;
    height: 50px;
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.company-logo.no-white-bg {
    mix-blend-mode: multiply;
    filter: brightness(0) invert(1) contrast(1.2);
}

.company-card:hover .company-logo {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

.company-card:hover .company-logo.no-white-bg {
    opacity: 1;
    filter: brightness(0) invert(1) contrast(1.2) drop-shadow(0 0 15px rgba(0, 212, 255, 0.6));
}

.company-name {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.company-card:hover .company-name {
    opacity: 1;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    .companies {
        padding: 60px 0;
    }
    
    .companies .section-title {
        font-size: 2rem;
    }
    
    .companies .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .companies-category {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .category-title {
        font-size: 1.2rem;
        min-width: auto;
        width: 100%;
        text-align: left;
    }
    
    .companies-grid {
        gap: 1.5rem 2rem;
        justify-content: center;
    }
    
    .company-logo {
        width: 100px;
        height: 40px;
        max-width: 100px;
        max-height: 40px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
