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




body {
    background: linear-gradient(to bottom, #0a0e27 0%, #1a1d3d 100%);
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9b6ef5, #ff6b35);
    border-radius: 10px;
    border: 2px solid rgba(10, 14, 39, 0.5);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b35, #9b6ef5);
    box-shadow: 0 0 15px rgba(155, 110, 245, 0.6);
}

/* Header Styles */
.header {
    width: 100%;
    height: 260px;
    background: #6f3cff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

/* Bottom circular shape */
.header::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: #0f122d;
    bottom: -330px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    animation: grid-move 20s linear infinite;
    z-index: 0;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(155, 110, 245, 0.8);
    animation: title-glow 3s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
    text-align: center;
}

@keyframes title-glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(155, 110, 245, 0.8); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(155, 110, 245, 1); }
}

/* Main Content */
.main-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sphere Container */
.sphere-container {
    width: 400px;
    height: 400px;
    margin: -90px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    perspective: 1000px;
}

.sphere {
    width: 350px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-sphere 20s linear infinite;
}

.sphere-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(155, 110, 245, 0.3);
    transform-style: preserve-3d;
}

.sphere-layer:nth-child(1) { transform: rotateY(0deg); }
.sphere-layer:nth-child(2) { transform: rotateY(30deg); }
.sphere-layer:nth-child(3) { transform: rotateY(60deg); }
.sphere-layer:nth-child(4) { transform: rotateY(90deg); }
.sphere-layer:nth-child(5) { transform: rotateY(120deg); }
.sphere-layer:nth-child(6) { transform: rotateY(150deg); }

.particle-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #9b6ef5;
    border-radius: 50%;
    box-shadow: 0 0 8px #9b6ef5, 0 0 15px rgba(155, 110, 245, 0.5);
    animation: particle-pulse 2s ease-in-out infinite;
    opacity: 1;
}

.particle-dot.bright {
    background: #ff6b35;
    box-shadow: 0 0 10px #ff6b35, 0 0 20px rgba(255, 107, 53, 0.6);
    width: 4px;
    height: 4px;
    opacity: 1;
}

.sphere::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(155, 110, 245, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: core-pulse 3s ease-in-out infinite;
}

.sphere::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.3);
    animation: pulse-ring 3s ease-out infinite;
}

@keyframes rotate-sphere {
    0% { transform: rotateY(0deg) rotateX(15deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes particle-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Energy Particles */
.energy-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #9b6ef5;
}

.particle-1 { top: 20%; left: 10%; animation: float-particle 4s ease-in-out infinite; }
.particle-2 { top: 60%; right: 15%; animation: float-particle 5s ease-in-out infinite 1s; }
.particle-3 { bottom: 30%; left: 20%; animation: float-particle 6s ease-in-out infinite 2s; }
.particle-4 { top: 40%; right: 25%; animation: float-particle 4.5s ease-in-out infinite 1.5s; }

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(20px, -20px); opacity: 1; }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1400px;
    margin: -250px auto 0;
    padding: 0 20px;
    position: relative;
}

.card {
    background: rgba(26, 29, 61, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(155, 110, 245, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Первая карточка - слева от круга */
.card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

/* Вторая карточка - внизу слева */
.card:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
    border-top-right-radius: 80px;
    clip-path: path('M 0,20 Q 0,0 20,0 L calc(100% - 100px),0 Q calc(100% - 50px),50 calc(100% - 50px),100 L calc(100%),100 Q calc(100%),calc(100% - 20) calc(100% - 20),calc(100%) L 20,calc(100%) Q 0,calc(100%) 0,calc(100% - 20) Z');
}

/* Третья карточка - внизу справа */
.card:nth-child(3) {
    grid-column: 3;
    grid-row: 2;
    border-top-left-radius: 80px;
    clip-path: path('M 50,100 Q 50,50 100,50 L calc(100% - 20),50 L calc(100% - 20),0 Q calc(100%),0 calc(100%),20 L calc(100%),calc(100% - 20) Q calc(100%),calc(100%) calc(100% - 20),calc(100%) L 20,calc(100%) Q 0,calc(100%) 0,calc(100% - 20) L 0,20 Q 0,0 20,0 L 50,0 Z');
}

/* Четвертая карточка - справа от круга */
.card:nth-child(4) {
    grid-column: 4;
    grid-row: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155, 110, 245, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(155, 110, 245, 0.6);
    box-shadow: 0 15px 50px rgba(155, 110, 245, 0.4);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.card-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-orange {
    background: linear-gradient(135deg, #ff6b35, #ff8c61);
    color: #fff;
}

.btn-purple {
    background: linear-gradient(135deg, #9b6ef5, #6b4dbf);
    color: #fff;
}

.card-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1d3d 0%, #2a2d5d 100%);
    border: 2px solid rgba(155, 110, 245, 0.5);
    border-radius: 30px;
    padding: 40px;
    width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff6b35;
    color: #fff;
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #9b6ef5;
    text-align: center;
}



/* Focus Modal Styles */
.modal-wide {
    width: 900px;
    max-width: 95vw;
}

.focus-subtitle {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    background: linear-gradient(135deg, #ff6b35, #9b6ef5);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 4px 15px rgba(155, 110, 245, 0.3);
}

.focus-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ff6b35;
    margin: 30px 0 20px;
    text-align: left;
    border-bottom: 2px solid rgba(155, 110, 245, 0.3);
    padding-bottom: 10px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.focus-item {
    background: rgba(155, 110, 245, 0.1);
    border: 1px solid rgba(155, 110, 245, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.focus-item:hover {
    background: rgba(155, 110, 245, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 110, 245, 0.3);
}

.focus-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(155, 110, 245, 0.5));
}

.focus-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    color: #9b6ef5;
}

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(155, 110, 245, 0.1);
    transition: all 0.2s ease;
}

.focus-list li:last-child {
    border-bottom: none;
}

.focus-list li:hover {
    padding-left: 10px;
    color: #ff6b35;
}

/* Tech Arsenal */
.tech-arsenal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-category {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tech-category:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.tech-category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: #ff6b35;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    padding: 10px 0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tech-list li:hover {
    padding-left: 10px;
    color: #ff6b35;
}

/* Responsive */
@media (max-width: 968px) {
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-arsenal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .modal-wide {
        width: 95vw;
        padding: 20px;
    }
    
    .focus-subtitle {
        flex-direction: column;
        align-items: center;
    }
}


/* About Buttons */
.about-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.about-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #9b6ef5, #6b4dbf);
    color: #fff;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b4dbf, #9b6ef5);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(155, 110, 245, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff6b35, #ff8c61);
    color: #fff;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff8c61, #ff6b35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-icon {
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.about-btn span {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .about-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-btn {
        justify-content: center;
    }
}


/* Team Section Title */
.team-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #ff6b35;
    margin: 30px 0 20px;
    text-align: left;
    border-bottom: 2px solid rgba(155, 110, 245, 0.3);
    padding-bottom: 10px;
}

/* Team Grid */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.team-card {
    background: rgba(155, 110, 245, 0.1);
    border: 1px solid rgba(155, 110, 245, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    background: rgba(155, 110, 245, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 110, 245, 0.3);
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid rgba(155, 110, 245, 0.5);
    object-fit: cover;
}

.team-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.team-role {
    color: #9b6ef5;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.team-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(155, 110, 245, 0.2);
    border-radius: 50%;
    color: #9b6ef5;
    transition: all 0.3s ease;
}

.team-link:hover {
    background: linear-gradient(135deg, #ff6b35, #9b6ef5);
    color: #fff;
    transform: scale(1.1);
}

.team-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 968px) {
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .qa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .leadership-grid,
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-link {
    background: rgba(155, 110, 245, 0.1);
    border: 1px solid rgba(155, 110, 245, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 110, 245, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.project-link:hover {
    background: rgba(155, 110, 245, 0.3);
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 10px 30px rgba(155, 110, 245, 0.4);
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(155, 110, 245, 0.5));
    transition: all 0.3s ease;
}

.project-link:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
}

.project-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.project-desc {
    font-size: 0.9rem;
    color: #9b6ef5;
    font-weight: 300;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(155, 110, 245, 0.2);
    font-size: 0.9rem;
}

footer a {
    color: #9b6ef5;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6b35;
}

/* Media Queries */
@media (max-width: 968px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }
    
    .card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    .sphere-container {
        width: 300px;
        height: 300px;
        margin: -150px auto 0;
    }
    .sphere {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3),
    .card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .sphere-container {
        width: 250px;
        height: 250px;
        margin: -120px auto 0;
    }
    .sphere {
        width: 200px;
        height: 200px;
    }
    h1 {
        font-size: 1.8rem;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .header {
        height: 220px;
    }
    
    h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .sphere-container {
        width: 350px;
        height: 350px;
        margin: -80px auto 0;
    }
    
    .sphere {
        width: 300px;
        height: 300px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        margin: -180px auto 0;
        gap: 20px;
    }
    
    .card {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        border-radius: 20px;
        clip-path: none;
    }
    
    .card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
        border-radius: 20px;
        clip-path: none;
    }
    
    .card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .modal-content {
        width: 90vw;
        padding: 30px;
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qa-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Landscape & Small Tablets (600px - 767px) */
@media (max-width: 767px) {
    .header {
        height: 180px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .sphere-container {
        width: 280px;
        height: 280px;
        margin: -60px auto 0;
    }
    
    .sphere {
        width: 230px;
        height: 230px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin: -140px auto 0;
        gap: 15px;
    }
    
    .card {
        padding: 25px 20px;
        min-height: 180px;
    }
    
    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3),
    .card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        border-radius: 20px;
        clip-path: none;
    }
    
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .card-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 95vw;
        padding: 25px;
        border-radius: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .focus-section-title {
        font-size: 1.3rem;
    }
    
    .focus-grid,
    .tech-arsenal,
    .leadership-grid,
    .qa-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Mobile Portrait (до 600px) */
@media (max-width: 600px) {
    body {
        padding: 0 10px;
    }
    
    .header {
        height: 160px;
        margin: 15px 0;
    }
    
    .header::after {
        width: 300px;
        height: 300px;
        bottom: -260px;
    }
    
    h1 {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
    }
    
    .sphere-container {
        width: 240px;
        height: 240px;
        margin: -50px auto 0;
    }
    
    .sphere {
        width: 190px;
        height: 190px;
    }
    
    .particle-dot {
        width: 2px;
        height: 2px;
    }
    
    .particle-dot.bright {
        width: 3px;
        height: 3px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin: -100px auto 0;
        gap: 12px;
        padding: 0 10px;
    }
    
    .card {
        padding: 20px 15px;
        min-height: 160px;
        border-radius: 15px;
    }
    
    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3),
    .card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        border-radius: 15px;
        clip-path: none;
    }
    
    .card h3 {
        font-size: 1rem;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }
    
    .card-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 85vh;
    }
    
    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .focus-subtitle {
        gap: 10px;
    }
    
    .badge {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .focus-section-title,
    .team-section-title {
        font-size: 1.2rem;
        margin: 20px 0 15px;
    }
    
    .focus-grid,
    .tech-arsenal,
    .leadership-grid,
    .qa-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .focus-item,
    .tech-category,
    .team-card {
        padding: 15px;
    }
    
    .focus-icon {
        font-size: 2rem;
    }
    
    .focus-title {
        font-size: 1rem;
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-role {
        font-size: 0.85rem;
    }
    
    .project-icon {
        font-size: 2.8rem;
    }
    
    .project-name {
        font-size: 1.1rem;
    }
    
    .about-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
    
    footer {
        padding: 20px;
        margin-top: 50px;
        font-size: 0.85rem;
    }
}

/* Large Screens (1920px+) */
@media (min-width: 1920px) {
    .header {
        height: 320px;
        max-width: 1800px;
        margin: 30px auto;
    }
    
    h1 {
        font-size: 3.8rem;
        letter-spacing: 6px;
    }
    
    .sphere-container {
        width: 500px;
        height: 500px;
        margin: -100px auto 0;
    }
    
    .sphere {
        width: 450px;
        height: 450px;
    }
    
    .cards-grid {
        max-width: 1800px;
        gap: 40px;
        margin: -280px auto 0;
    }
    
    .card {
        padding: 50px 40px;
        min-height: 280px;
    }
    
    .card h3 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }
    
    .card-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .modal-content {
        width: 1000px;
        padding: 50px;
    }
    
    .modal-title {
        font-size: 2.5rem;
    }
    
    .focus-section-title,
    .team-section-title {
        font-size: 1.8rem;
    }
    
    .focus-grid {
        gap: 25px;
    }
    
    .tech-arsenal {
        gap: 25px;
    }
    
    .leadership-grid,
    .qa-grid {
        gap: 25px;
    }
    
    footer {
        padding: 40px;
        font-size: 1rem;
    }
}

/* Ultra-Wide Screens (2560px+) */
@media (min-width: 2560px) {
    .main-content {
        max-width: 2000px;
    }
    
    .header {
        height: 380px;
        max-width: 2200px;
    }
    
    h1 {
        font-size: 4.5rem;
        letter-spacing: 8px;
    }
    
    .sphere-container {
        width: 600px;
        height: 600px;
        margin: -120px auto 0;
    }
    
    .sphere {
        width: 550px;
        height: 550px;
    }
    
    .cards-grid {
        max-width: 2200px;
        gap: 50px;
        margin: -320px auto 0;
    }
    
    .card {
        padding: 60px 50px;
        min-height: 320px;
    }
    
    .card h3 {
        font-size: 1.8rem;
    }
    
    .card-btn {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .modal-content {
        width: 1200px;
        padding: 60px;
    }
}

/* Small Mobile (до 375px) - iPhone SE, малые Android */
@media (max-width: 375px) {
    body {
        padding: 0 8px;
    }
    
    .header {
        height: 140px;
        margin: 10px 0;
        border-radius: 12px;
    }
    
    .header::after {
        width: 250px;
        height: 250px;
        bottom: -220px;
    }
    
    h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .sphere-container {
        width: 200px;
        height: 200px;
        margin: -40px auto 0;
    }
    
    .sphere {
        width: 160px;
        height: 160px;
    }
    
    .sphere::before {
        width: 150px;
        height: 150px;
    }
    
    .particle-dot {
        width: 1.5px;
        height: 1.5px;
    }
    
    .particle-dot.bright {
        width: 2.5px;
        height: 2.5px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        margin: -80px auto 0;
        gap: 10px;
        padding: 0 8px;
    }
    
    .card {
        padding: 18px 12px;
        min-height: 140px;
        border-radius: 12px;
    }
    
    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3),
    .card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
        border-radius: 12px;
        clip-path: none;
    }
    
    .card h3 {
        font-size: 0.9rem;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }
    
    .card-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        padding: 15px;
        max-height: 90vh;
        border-radius: 15px;
    }
    
    .modal-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
        top: 15px;
        right: 15px;
    }
    
    .focus-subtitle {
        gap: 8px;
    }
    
    .badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .focus-section-title,
    .team-section-title {
        font-size: 1.1rem;
        margin: 15px 0 12px;
    }
    
    .focus-item,
    .tech-category,
    .team-card,
    .project-link {
        padding: 12px;
        border-radius: 12px;
    }
    
    .focus-icon {
        font-size: 1.8rem;
    }
    
    .focus-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .focus-list li,
    .tech-list li {
        padding: 6px 0;
        font-size: 0.85rem;
    }
    
    .tech-category-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    .team-name {
        font-size: 0.95rem;
    }
    
    .team-role {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .team-link {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .project-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    
    .project-name {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .project-desc {
        font-size: 0.85rem;
    }
    
    .about-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    footer {
        padding: 15px;
        margin-top: 40px;
        font-size: 0.8rem;
    }
    
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
}

/* Extra Small Mobile (до 320px) - очень старые/маленькие устройства */
@media (max-width: 320px) {
    .header {
        height: 120px;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .sphere-container {
        width: 160px;
        height: 160px;
        margin: -35px auto 0;
    }
    
    .sphere {
        width: 120px;
        height: 120px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        margin: 20px auto 0;
    }
    
    .card {
        padding: 15px 10px;
        min-height: 130px;
    }
    
    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3),
    .card:nth-child(4) {
        top: 70%;
        grid-column: 1;
        grid-row: auto;
        border-radius: 12px;
        clip-path: none;
    }
    
    .card h3 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .card-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .focus-section-title,
    .team-section-title {
        font-size: 1rem;
    }
    
    .focus-item,
    .tech-category,
    .team-card,
    .project-link {
        padding: 10px;
    }
    
    .team-photo {
        width: 55px;
        height: 55px;
    }
    
    .project-icon {
        font-size: 2.2rem;
    }
    
    .about-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}
