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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1419;
    color: #e6edf3;
    overflow-x: hidden;
    line-height: 1.6;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 100vh;
}

/* iOS Fix  */
html {
    -webkit-text-size-adjust: 100%;
    height: 100%;
}

body {
    position: relative;
    height: auto;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Gradient Background */
#gradient-background {
    position: fixed;
     pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f1419 0%, #1a1f2e 50%, #0f1419 100%);
}

/* Modern Button Style */
.modern-btn {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e6edf3;
    text-decoration: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modern-btn::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 ease;
}

.modern-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 119, 198, 0.5);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(120, 119, 198, 0.15),
        0 0 0 1px rgba(120, 119, 198, 0.1);
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:active {
    transform: translateY(0);
}

.modern-btn .btn-text {
    position: relative;
    z-index: 1;
}

.modern-btn:hover .btn-text {
    animation: subtle-glitch 0.3s ease-out;
}

@keyframes subtle-glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 0;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    position: relative;
    flex-shrink: 0; /* Предотвращает сжатие логотипа */
}

.apple-logo img, .xai-logo img {
    width: 70px;
    filter: drop-shadow(0 0 8px rgba(120, 119, 198, 0.3));
    transition: all 0.3s ease;
}

.apple-logo img:hover, .xai-logo img:hover {
    filter: drop-shadow(0 0 15px rgba(120, 119, 198, 0.5));
    transform: scale(1.75);
}

.logo-divider {
    color: #7877c6;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
    font-size: 28px;
}

/* Navigation */
.nav {
    display: flex;
    gap: 15px;  
    flex-wrap: nowrap; 
}

.nav-link {
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;  
    flex-shrink: 0;  
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.hero::before {
    content: '';
    position: absolute;
     pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(120, 119, 198, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(255, 119, 198, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(120, 200, 255, 0.05) 0%, transparent 70%);
    animation: hero-bg-float 12s ease-in-out infinite;
}

@keyframes hero-bg-float {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1) rotate(0deg); 
    }
    33% { 
        opacity: 0.8; 
        transform: scale(1.05) rotate(1deg); 
    }
    66% { 
        opacity: 0.7; 
        transform: scale(0.98) rotate(-1deg); 
    }
}

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

.hero-left {
    padding-right: 40px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 32px;
    position: relative;
}

.welcome-text {
    display: block;
    background: linear-gradient(135deg, #7877c6, #78c8ff, #ff77c6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

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

.to-text {
    display: block;
    color: #94a3b8;
    font-size: 2.2rem;
    font-weight: 400;
    margin: 8px 0;
}

.project-text {
    display: block;
    background: linear-gradient(135deg, #ff77c6, #7877c6, #78c8ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite reverse;
}

.project-label {
    display: block;
    color: #78c8ff;
    font-size: 2.2rem;
    font-weight: 600;
    margin-top: 8px;
    text-shadow: 0 0 20px rgba(120, 200, 255, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 520px;
    margin-top: 24px;
}

.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.interactive-shape {
    position: relative;
    width: 600px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.interactive-shape:hover {
    transform: scale(1.02);
}

#dotShape {
    width: 600px !important;
    height: 500px !important;
    filter: drop-shadow(0 0 30px rgba(120, 119, 198, 0.4));
    transition: filter 0.3s ease;
    border-radius: 20px;
}

#dotShape:hover {
    filter: drop-shadow(0 0 50px rgba(120, 119, 198, 0.6));
}

/* Hero floating particle effect */
.hero-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
    z-index: -1;
}

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

/* Main Content Cards */
.main-content {
    padding: 60px 0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.glass-card::-webkit-scrollbar {
    width: 6px;
}

.glass-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.glass-card::-webkit-scrollbar-thumb {
    background: rgba(120, 119, 198, 0.5);
    border-radius: 3px;
}

.glass-card::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 119, 198, 0.7);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 119, 198, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(120, 119, 198, 0.1);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(120, 119, 198, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e6edf3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-title:hover {
    color: #7877c6;
    animation: subtle-glitch 0.3s ease-out;
}

.card-text {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 1rem;
}

/* Focus Grid */
.focus-grid {
    display: grid;
    gap: 16px;
}

.focus-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 53px;
}

.focus-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

.focus-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(120, 200, 255, 0.1);
    border-radius: 8px;
}

.focus-content h4 {
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 4px;
}

.focus-content p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    gap: 20px;
}

.tech-category h4 {
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(120, 119, 198, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #e6edf3;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(120, 119, 198, 0.2);
    transform: scale(1.05);
}

/* Architecture button */
.menu-btn {
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.1), rgba(120, 200, 255, 0.1));
    border-color: rgba(120, 119, 198, 0.3);
}

.menu-btn:hover {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2), rgba(120, 200, 255, 0.2));
    box-shadow: 0 15px 35px rgba(120, 119, 198, 0.2);
}

/* Team Section */
.team {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.team-leadership {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    margin-bottom: 40px;
    padding: 0px 100px 0;
}

.team-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
    justify-items: center;
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 250px;
    justify-self: center;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.team-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 119, 198, 0.3);
    box-shadow: 0 20px 40px rgba(120, 119, 198, 0.1);
}

.team-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover; 
    object-position: center;
    border: 2px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    background: rgba(120, 119, 198, 0.1); 
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(from 0deg, #7877c6, #78c8ff, #ff77c6, #7877c6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotate 3s linear infinite;
}

.team-card:hover .avatar-glow {
    opacity: 0.8;
}

.team-card:hover .avatar-image {
    background: rgba(120, 119, 198, 0.2);
    transform: scale(1.1);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.team-info {
    text-align: center;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.team-name:hover {
    color: #7877c6;
    animation: subtle-glitch 0.3s ease-out;
}

.team-role {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

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

.team-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.team-link:hover {
    background: rgba(120, 119, 198, 0.1);
    border-color: rgba(120, 119, 198, 0.3);
    color: #7877c6;
    transform: translateY(-2px);
    z-index: 11; 
}

/* Other Projects Section */
.other-projects {
    padding: 80px 0;
}

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

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

.project-card {
    padding: 24px;
    border-radius: 16px;
    font-size: 1rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(120, 119, 198, 0.1);
}

.project-nasa {
    background-image: url('https://raw.githubusercontent.com/SerineGit/project-page/refs/heads/main/img/nasa.png');
}

.project-spaceX {
    background-image: url('https://raw.githubusercontent.com/SerineGit/project-page/refs/heads/main/img/spacex.png');
}

.project-xai {
    background-image: url('https://raw.githubusercontent.com/SerineGit/project-page/refs/heads/main/img/xai.png');
}

.project-tesla {
    background-image: url('https://raw.githubusercontent.com/SerineGit/project-page/refs/heads/main/img/tesla.png');
}

.project-starlink {
    background-image: url('https://raw.githubusercontent.com/SerineGit/project-page/refs/heads/main/img/starlink.png');
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(15 20 25 / 27%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: rgb(43 37 57 / 54%);
    backdrop-filter: blur(30px);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 20px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #7877c6;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    font-family: inherit;
}

.modal-close:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.4);
    transform: scale(1.1);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(80vh - 64px);
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(120, 119, 198, 0.5);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 119, 198, 0.7);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.modal-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(120, 119, 198, 0.3);
    box-shadow: 0 0 20px rgba(120, 119, 198, 0.2);
}

.modal-name {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #7877c6, #78c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-role {
    color: #7877c6;
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.modal-section-title {
    font-size: 1.1rem;
    color: #7877c6;
    font-weight: 600;
    margin: 20px 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 3px solid #7877c6;
    padding-left: 12px;
}

.modal-text, .modal-experience {
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.skill-tag {
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(120, 119, 198, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    background: rgba(120, 119, 198, 0.3);
}

.modal-achievements {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.modal-achievements li {
    color: #e2e8f0;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
    font-size: 0.9rem;
}

.modal-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #78c8ff;
    font-weight: bold;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Footer */
.footer {
    background: rgba(15, 20, 25, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-link {
    color: #7877c6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7877c6, #78c8ff);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #78c8ff;
    text-shadow: 0 0 8px rgba(120, 119, 198, 0.4);
}

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

.footer-copyright {
    color: #64748b;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer-text, .footer-copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 25px 0;
    }
    
    .footer-text, .footer-copyright {
        font-size: 0.8rem;
    }
}



/* Desktop - up to 1000px */
@media (max-width: 1000px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-left {
        padding-right: 20px;
    }
    
    .interactive-shape {
        width: 500px;
        height: 420px;
    }
    
    #dotShape {
        width: 500px !important;
        height: 420px !important;
    }
    
    .content-grid {
        padding: 0 15px;
        gap: 25px;
    }
    
    .team-container {
        padding: 0 15px;
    }
    
    .other-projects .container {
        padding: 0 15px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .apple-logo img, .xai-logo img {
        height: 35px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .nav {
        gap: 12px; 
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Tablet - up to 992px */
@media (max-width: 992px) {
    .hero {
        padding: 100px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-left {
        padding-right: 0;
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .to-text,
    .project-label {
        font-size: 2rem;
    }
    
    .interactive-shape {
        width: 450px;
        height: 380px;
    }
    
    #dotShape {
        width: 450px !important;
        height: 380px !important;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-leadership {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .team-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .glass-card {
        padding: 25px;
    }
    .nav {
        gap: 10px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* Large Mobile / Small Tablet - up to 768px */
@media (max-width: 768px) {
      .header {
        padding: 12px 0;
    }
    
    .header-content {
        padding: 0 10px;
        gap: 10px; /* Добавил gap между логотипом и навигацией */
    }
    
    .logo-section {
        gap: 8px;
        font-size: 20px;
        min-width: 0; 
    }
    
    .logo-divider {
        font-size: 24px;
    }
    
    .apple-logo img, .xai-logo img {
        height: 30px;
        width: auto; 
    }
    
    .nav {
        gap: 6px;
        flex-shrink: 0; 
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 10px;
        min-width: 0; 
    }

    
    .hero {
        padding: 80px 0 30px;
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 0 10px;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 24px;
    }
    
    .to-text,
    .project-label {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .interactive-shape {
        width: 400px;
        height: 320px;
    }
    
    #dotShape {
        width: 400px !important;
        height: 320px !important;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 20px;
    }
    
    .glass-card {
        padding: 24px;
        margin: 0 auto;
        max-width: 500px;
    }
    
    .team {
        padding: 40px 0;
    }
    
    .team-container {
        padding: 0 10px;
    }
    
    .team-leadership {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .team-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px 0;
    }
    
    .team-card {
        padding: 20px;
        max-width: 200px;
    }
    
    .team-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .team-name {
        font-size: 0.85rem;
    }
    
    .team-role {
        font-size: 0.7rem;
        margin-bottom: 12px;
    }
    
    .other-projects {
        padding: 60px 0;
    }
    
    .other-projects .container {
        padding: 0 10px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-card {
        padding: 20px;
        min-height: 100px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-name {
        font-size: 1.3rem;
    }
}

/* Mobile - up to 600px */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .to-text,
    .project-label {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .interactive-shape {
        width: 350px;
        height: 280px;
    }
    
    #dotShape {
        width: 350px !important;
        height: 280px !important;
    }
    
    .team-leadership {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .team-card {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
   .header-content {
        padding: 0 8px;
    }
    
    .logo-section {
        gap: 6px;
        font-size: 18px;
    }
    
    .nav {
        gap: 4px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 9px;
    }
}


/* Small Mobile - up to 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-content {
        padding: 0 8px;
        min-height: 50px; /* Минимальная высота для предотвращения сжатия */
    }
    
    .logo-section {
        gap: 6px;
        font-size: 16px;
    }
    
    .logo-divider {
        font-size: 18px;
    }
    
    .apple-logo img, .xai-logo img {
        height: 24px;
    }
    
    .nav {
        gap: 3px;
    }
    
    .nav-link {
        padding: 4px 6px;
        font-size: 8px;
        border-radius: 4px;
    }

    .hero {
        padding: 70px 0 20px;
    }
    
    .hero-content {
        padding: 0 10px;
        gap: 25px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .to-text,
    .project-label {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-top: 16px;
    }
    
    .interactive-shape {
        width: 300px;
        height: 240px;
    }
    
    #dotShape {
        width: 300px !important;
        height: 240px !important;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .content-grid {
        padding: 0 10px;
        gap: 15px;
    }
    
    .glass-card {
        padding: 20px;
        max-width: none;
    }
    
    .card-header {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.95rem;
    }
    
    .team {
        padding: 30px 0;
    }
    
    .team-container {
        padding: 0 10px;
    }
    
    .team-leadership {
        margin-bottom: 25px;
    }
    
    .team-card {
        padding: 18px;
        max-width: 250px;
    }
    
    .team-avatar {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .team-name {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .team-role {
        font-size: 0.65rem;
        margin-bottom: 10px;
    }
    
    .team-links {
        gap: 6px;
    }
    
    .team-link {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .other-projects {
        padding: 40px 0;
    }
    
    .other-projects .container {
        padding: 0 10px;
    }
    
    .project-card {
        padding: 16px;
        min-height: 80px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 5px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }
    
    .modal-avatar-img {
        width: 60px;
        height: 60px;
    }
    
    .modal-name {
        font-size: 1.2rem;
    }
    
    .modal-role {
        font-size: 0.9rem;
    }
    
    .modal-section-title {
        font-size: 1rem;
        margin: 16px 0 10px;
    }
    
    .modal-text, .modal-experience {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .skill-tag {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .modal-achievements li {
        font-size: 0.85rem;
        padding: 4px 0;
    }
}

/* Extra Small Mobile - up to 360px */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .to-text,
    .project-label {
        font-size: 1.2rem;
    }
    
    .interactive-shape {
        width: 280px;
        height: 220px;
    }
    
    #dotShape {
        width: 280px !important;
        height: 220px !important;
    }
    
    .glass-card {
        padding: 16px;
    }
    
    .team-card {
        padding: 16px;
        max-width: 220px;
    }
    
    .project-card {
        padding: 12px;
        min-height: 70px;
        font-size: 0.8rem;
    }
    
    .modal-body {
        padding: 16px;
    }
  .header-content {
        padding: 0 6px;
    }
    
    .logo-section {
        font-size: 14px;
        gap: 4px;
    }
    
    .logo-divider {
        font-size: 16px;
    }
    
    .apple-logo img, .xai-logo img {
        height: 20px;
    }
    
    .nav {
        gap: 2px;
    }
    
    .nav-link {
        padding: 3px 5px;
        font-size: 7px;
        border-radius: 3px;
    }
}
