/* projects.css */

:root {
    --primary: #4A90E2;
    --primary-light: #A4C8E1;
    --primary-dark: #003D66;
    --accent: #FF7D47;
    --accent-light: #FFA07D;
    --accent-dark: #D45C2F;
    --text: #333333;
    --text-light: #555555;
    --background: #F4F4F4;
    --card-bg: #FFFFFF;
    --border: #E2E8F0;
    --success: #48BB78;
    --warning: #ED8936;
    --error: #F56565;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    max-width: 100%;
    overflow-x: hidden;
}

/* Projects Section */
.projects-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    box-sizing: border-box;
    width: 100%;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 40px;
}

.projects-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 25px;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.projects-subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.projects-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
}

.projects-description {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Project Field */
.project-field {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.field-icon {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.field-content {
    flex: 1;
}

.field-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
    display: block;
}

.field-value {
    font-size: 1.05rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.field-icon i {
    transition: transform 0.3s ease;
}

.project-field:hover .field-icon i {
    transform: scale(1.1);
}

/* Project Card - Horizontal Layout */
.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    min-height: 300px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Project Image - Left Side */
.project-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    aspect-ratio: 3/2;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03);
    opacity: 0.95;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Project Content - Right Side */
.project-content {
    flex: 1;
    padding: 35px;
    display: flex;
    flex-direction: column;
}

.project-header {
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary-dark);
    line-height: 1.3;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-duration {
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-duration i {
    font-size: 0.8rem;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

/* Project Detail Item */
.detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.detail-icon {
    color: var(--accent);
    font-size: 1.3rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
    display: block;
}

.detail-value {
    font-size: 1.05rem;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* Project Description */
.project-description {
    margin-bottom: 25px;
    color: var(--text);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Project Button */
.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    gap: 10px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(255, 125, 71, 0.3);
    text-decoration: none;
}

.project-button:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 125, 71, 0.4);
}

.project-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-button:hover i {
    transform: translateX(3px);
}

/* No Projects Message */
.no-projects {
    text-align: center;
    padding: 60px 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.no-projects p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navigation Styles */
.svn-navbar {
    background: linear-gradient(135deg, #3A7BD5, #2A5298);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.svn-navbar.scrolled {
    background: linear-gradient(135deg, #4A90E2, #003D66);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.navbar-logo i {
    font-size: 2rem;
    color: var(--accent);
}

.navbar-logo span {
    font-weight: 700;
    color: white;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

a {
    text-decoration: none;
}

.navbar-links a {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-links a:hover {
    color: var(--accent);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    gap: 15px;
}

.navbar-button {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-button.primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.navbar-button.primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.navbar-button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.navbar-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-button:hover {
    transform: rotate(90deg);
}

/* Footer Styles */
.footer {
    background-color: #2D3748;
    color: white;
    padding: 40px 20px;
    position: relative;
}

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

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0 0 15px;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background-color: var(--accent);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(255, 107, 53, 0.3);
}

.footer-links h3 {
    font-size: 1.1rem;
    color: white;
    margin: 0 0 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-block;
    padding: 3px 0;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contacts .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contacts .contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-contacts .contact-item a:hover {
    color: white;
    text-decoration: underline;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
    text-decoration: underline;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-content {
    background-color: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(30px);
    transition: var(--transition);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--accent);
    color: white;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 0 25px;
    text-align: center;
}

.request-modal {
    background: rgba(0,0,0,0.5);
}

.request-modal .modal-content {
    max-width: 500px;
    padding: 40px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.request-modal .modal-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.request-modal .modal-subtitle {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.request-modal .form-group {
    margin-bottom: 20px;
}

.request-modal .field-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

.request-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.request-modal input,
.request-modal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.request-modal input:focus,
.request-modal textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.request-modal textarea {
    min-height: 100px;
    resize: vertical;
}
.project-modal {
    display: none;
}
.request-modal .submit-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.request-modal .submit-btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.request-modal .form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

.request-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s ease;
}

.request-modal .modal-close:hover {
    color: var(--text);
}

.request-modal .submit-btn:hover {
    background-color: var(--primary-dark);
}

/* Success message styles */
.request-modal .submit-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.request-modal .submit-success .success-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 15px;
    animation: bounceIn 0.6s ease;
}

.request-modal .submit-success h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.request-modal .submit-success p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.request-modal .submit-success .close-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.request-modal .submit-success .close-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Loading state */
.request-modal .submit-btn.sending {
    position: relative;
    pointer-events: none;
    padding-right: 50px;
}

.request-modal .submit-btn.sending:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}
/* Стили для чекбокса и его контейнера */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Стили для label чекбокса */
.form-group label[for="privacy-policy"] {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    user-select: none;
    transition: color 0.2s ease;
}

/* Стили для кастомного чекбокса */
.form-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомный чекбокс */
.form-group label[for="privacy-policy"]::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
}

/* Состояние при наведении */
.form-group:hover label[for="privacy-policy"]::before {
    border-color: var(--primary-light);
}

/* Состояние когда чекбокс отмечен */
.form-group input[type="checkbox"]:checked + label[for="privacy-policy"]::before {
    background-color: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Стили для текста ссылки */
.form-group label[for="privacy-policy"] a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
    margin-left: 4px;
}

.form-group label[for="privacy-policy"] a:hover {
    color: var(--accent);
}

/* Сообщение об ошибке */
.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-group.error label[for="privacy-policy"] {
    color: var(--error);
}

.form-group.error label[for="privacy-policy"]::before {
    border-color: var(--error);
}

/* Анимация при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.form-group.error {
    animation: shake 0.4s ease-in-out;
}
/* Стили для блока лицензий */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: left;
    gap: 15px;
}

.licenses-list {
    margin-top: 10px;
}

.licenses-list a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.licenses-list a:hover {
    color: white;
    text-decoration: underline;
}

.licenses-links {
    display: flex;
    align-items: left;
    flex-direction: column;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    gap: 5px;
    flex-wrap: wrap;
}

.licenses-links a {
    color: #fff;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.licenses-links a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.request-modal .submit-btn.sending::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.request-modal .submit-success {
    text-align: center;
    padding: 30px;
    display: none;
}

.request-modal .submit-success .success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.request-modal .submit-success h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.request-modal .submit-success p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.request-modal .submit-success .close-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.request-modal .submit-success .close-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Стили для ошибок формы */
.error {
    border-color: #e74c3c !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Mobile Menu Styles */
/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #4A90E2, #003D66);
    z-index: 999;
    transition: all 0.4s ease;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.mobile-menu-links a {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 12px 0;
    transition: all 0.3s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.mobile-menu-actions {
    margin-top: 30px;
}

.mobile-nav-button {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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


/* Responsive Design */
@media (max-width: 1200px) {
    .projects-title {
        font-size: 2.5rem;
    }

    .project-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .projects-section {
        padding: 80px 30px;
    }

    .navbar-links {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .navbar-actions {
        display: none;
    }
}


/* Мобильная версия - приоритетная */
/* Модальное окно проекта (мобильная версия) */
@media (max-width: 768px) {
    .project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

   .project-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: all 0.3s ease;
}

    .project-modal.active .project-modal-content {
    transform: translateY(0);
}

    .project-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    border: none;
}

.project-modal-close:hover {
    background-color: var(--accent);
    color: white;
}


   .project-modal-image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

    .project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.3;
}

   .project-modal-meta {
    margin-bottom: 20px;
}

    .project-modal-details {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .project-modal-description {
        margin-bottom: 25px;
        color: var(--text);
        line-height: 1.7;
        font-size: 1rem;
    }

    .project-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-decoration: none;
    width: 100%;
    gap: 10px;
}

.project-modal-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.project-modal-button i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.project-modal-button:hover i {
    transform: translateX(3px);
}
     .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }

    .project-card {
        display: block;
        padding: 0;
        background: none;
        box-shadow: none;
        border: none;
        min-height: auto;
        margin-bottom: 30px;
    }

    .project-image {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        box-shadow: var(--shadow-md);
        margin-bottom: 15px;
    }

    .project-image::after {
        content: 'Нажмите для просмотра деталей';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 10px;
        text-align: center;
        font-size: 0.9rem;
        transition: var(--transition);
    }

    .project-image:hover::after {
        background: rgba(0, 0, 0, 0.8);
    }

    .project-content {
        display: none;
    }

    .project-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--accent);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: var(--shadow-sm);
        z-index: 1;
    }
}
/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .project-image {
        height: 180px;
    }

    .project-modal-content {
        padding: 20px 15px;
    }

    .project-modal-title {
        font-size: 1.4rem;
    }
}
/* Для маленьких мобилок */
@media (max-width: 576px) {
    .project-image {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }

    .project-content {
        padding: 15px;
    }

    .project-title {
        font-size: 1.4rem;
        margin-top: 0;
    }

    .project-button {
        margin-top: 15px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .project-image {
        height: 160px;
    }

    .project-content {
        padding: 12px;
    }
}
/* Mobile Menu Styles */
@media (max-width: 992px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: linear-gradient(135deg, #4A90E2, #003D66);
        z-index: 999;
        transition: all 0.4s ease;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
    }

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
    }

    .mobile-menu-links a {
        color: white;
        font-size: 1.1rem;
        font-weight: 500;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .mobile-menu-links a:hover {
        color: var(--accent);
        transform: translateX(5px);
    }

    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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