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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 500; }

body {
    font-family: 'Oswald', 'Arial', sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background with overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, var(--darkness, 0.6));
    z-index: 1;
}

.background-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ff6b6b; /* Красноватый цвет */
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 2rem;
}

.content-container {
    max-width: 1000px;
    width: 100%;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.about-text p {
    font-size: 1.3rem;
    font-weight: 400; /* Regular weight для основного текста */
    line-height: 1.5; /* Оптимальный line-height для Oswald */
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    white-space: pre-line;
    letter-spacing: 0.3px;
}

/* Marquee Section */
.marquee-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    height: 3rem; /* Фиксированная высота для контейнера */
    display: flex;
    align-items: center; /* Центрируем по вертикали */
}

.marquee-text {
    font-size: 1.2rem;
    font-weight: 500; /* Medium weight для бегущих строк */
    position: absolute;
    white-space: nowrap;
    top: 50%;
    transform: translateY(-50%);
    animation: marquee 15s linear infinite;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.marquee:nth-child(1) .marquee-text {
    animation-name: marquee-left;
}

.marquee:nth-child(2) .marquee-text {
    animation-name: marquee-right;
    animation-duration: 18s;
}

/* Анимация справа налево */
@keyframes marquee-left {
    0% {
        left: 100%;
        transform: translateY(-50%);
    }
    100% {
        left: -100%;
        transform: translateY(-50%);
    }
}

/* Анимация слева направо */
@keyframes marquee-right {
    0% {
        right: 100%;
        transform: translateY(-50%);
    }
    100% {
        right: -100%;
        transform: translateY(-50%);
    }
}

/* Projects Page Styles */
.projects-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.projects-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b; /* Красноватый цвет */
    margin: 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    flex-shrink: 0;
}

.project-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.project-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.3px;
}

.project-link {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-decoration: none;
}

/* Responsive Design for Projects */
@media (max-width: 768px) {
    .projects-container {
        padding: 1rem;
    }
    
    .projects-header h1 {
        font-size: 2rem;
    }
    
    .project-item {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .project-image img {
        width: 150px;
        height: 150px;
    }
    
    .project-name {
        font-size: 2rem;
    }
    
    .project-description {
        font-size: 1.1rem;
    }
    
    .project-link {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .project-item {
        padding: 1.5rem;
    }
    
    .project-image img {
        width: 120px;
        height: 120px;
    }
    
    .project-name {
        font-size: 1.8rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .about-text p {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .marquee-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-text p {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .marquee-text {
        font-size: 0.9rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.markdown-content p {
    font-weight: 400;
    letter-spacing: 0.3px;
}

.markdown-content strong {
    font-weight: 700;
    color: #ff6b6b; /* Заменили золотой на красноватый */
}

/* Specific for blog */

.auth-container {
    margin-left: auto;
    position: relative;
}

.sign-in-btn, .user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.sign-in-btn:hover, .user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    min-width: 120px;
    display: none;
    z-index: 1001;
}

.user-dropdown button {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 0.75rem;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    text-transform: uppercase;
}

.user-dropdown button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ff6b6b; /* Красноватый цвет */
}

.blog-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0;
}

.create-post-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.create-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.post {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.post:hover {
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.post-author {
    font-weight: 600;
    color: #ff6b6b;
    font-size: 1.1rem;
}

.post-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.post-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-content {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-reactions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reaction-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.reaction-btn.active {
    background: rgba(255, 107, 107, 0.2); /* Заменили золотой на красноватый */
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.post-modal {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
}

.close-btn:hover {
    opacity: 0.7;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.auth-tab.active,
.auth-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal form {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', 'Arial', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Oswald', 'Arial', sans-serif;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b; /* Заменили золотой на красноватый */
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

/* Post Creation Styles */
.images-container {
    margin-bottom: 1.5rem;
}

.images-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: white;
}

.paste-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    min-height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-container {
    margin-bottom: 1.5rem;
}

.editor-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.editor-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.editor-tab.active,
.editor-tab:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.editor-content {
    position: relative;
}

#postContent {
    width: 100%;
    min-height: 300px;
    resize: vertical;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.markdown-preview {
    min-height: 300px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    line-height: 1.6;
}

.editor-info {
    margin-top: 0.5rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Markdown content styling */
.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
    color: #ffffff; /* Заменили золотой на красноватый */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.markdown-preview h1 { font-size: 2rem; }
.markdown-preview h2 { font-size: 1.7rem; }
.markdown-preview h3 { font-size: 1.4rem; }

.markdown-preview p {
    margin-bottom: 1rem;
}

.markdown-preview code {
    background: rgba(255, 107, 107, 0.1); /* Заменили золотой на красноватый */
    color: #ffffff;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.markdown-preview pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-preview blockquote {
    border-left: 4px solid #ffffff; /* Заменили золотой на красноватый */
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.markdown-preview ul,
.markdown-preview ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.markdown-preview a {
    color: #67b7dc;
    text-decoration: none;
}

.markdown-preview a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem;
    }
    
    .blog-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .post {
        padding: 1.5rem;
    }
    
    .post-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .post-images {
        grid-template-columns: 1fr;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .auth-container {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .post-title {
        font-size: 1.4rem;
    }
    
    .post-reactions {
        flex-wrap: wrap;
    }
}

.uploading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Delete button styles */
.delete-btn {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff4757;
    color: #ff4757;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.delete-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.2);
}

/* Post actions container */
.post-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Contacts Page Styles */
.contacts-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.contacts-header {
    text-align: center;
    margin-bottom: 4rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.contacts-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b6b; 
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.contacts-header p {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    letter-spacing: 0.5px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.contact-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

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

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff6b6b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.contact-link:hover {
    color: #ff6b6b;
    text-decoration: none;
}

/* Responsive Design for Contacts */
@media (max-width: 768px) {
    .contacts-container {
        padding: 1rem;
    }
    
    .contacts-header {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .contacts-header h1 {
        font-size: 2.2rem;
    }
    
    .contacts-header p {
        font-size: 1.1rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contacts-header {
        padding: 1.5rem 1rem;
    }
    
    .contacts-header h1 {
        font-size: 1.8rem;
    }
    
    .contacts-header p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1.2rem;
        gap: 1.2rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .contact-link {
        font-size: 0.95rem;
        word-break: break-all;
    }
}

/* === Image Lightbox Modal Styles === */
#imageModal {
    display: none;
}
#imageModal .modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}
#imageModal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1002;
}