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



body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: #764ba2;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    margin: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

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


.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px 30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: #764ba2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-btn:first-child {
    background: #764ba2;
    color: white;
}

.nav-btn:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.nav-btn:last-child {
    background: #edf2f7;
    color: #4a5568;
}

.nav-btn:last-child:hover {
    background: #e2e8f0;
}

.container > div:not(.navbar) {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Заголовки */
h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    background: #764ba2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #2d3748;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #764ba2;
    border-radius: 2px;
}

form {
    background: #f8fafd;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    background: #764ba2;
    color: white;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.tech-chip {
    background: #764ba2;
    color: white;
    padding: 12px 25px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
}

.tech-chip i {
    font-size: 20px;
}

.tech-chip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(118, 75, 162, 0.3);
    border-color: white;
}

.url-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 15px;
    border: 2px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.url-item:hover {
    border-color: #667eea;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.url-info {
    flex: 1;
    margin-right: 20px;
    line-height: 1.4;
}

.url-info strong {
    color: #4a5568;
    font-size: 14px;
    letter-spacing: 1px;
}

.url-info a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: inherit;
    vertical-align: baseline;
    vertical-align: middle;
}

.url-info a:hover {
    text-decoration: underline;
}

.url-info small {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 13px;
    width: 100%;              
    overflow: hidden;         
    text-overflow: ellipsis;  
    white-space: nowrap;      
}

.url-info small strong {
    color: #667eea;
    font-size: 13px;
    max-width: 150px;         
    display: inline-block;     
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;    
}

.url-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.url-actions button {
    padding: 10px 15px;
    font-size: 14px;
    min-width: 90px;
    border: 2px solid transparent;
}

.url-actions button:first-child {
    background: #ff9900;
}

.url-actions button:first-child:hover {
    background: #e68a00;
}

.url-actions button:last-child {
    background: #ff4757;
}

.url-actions button:last-child:hover {
    background: #ff3344;
}

.contacts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.contact-card {
    background: #f8fafd;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;                
    flex-direction: column;       
    align-items: center;          
    justify-content: center;     
}

.contact-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.contact-card i {
    font-size: 40px;
    background: #764ba2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: normal;
    width: 100%;
}

.contact-card p,
.contact-card a {
    color: #2d3748;
    font-weight: 600;
    text-decoration: none;
    max-width: 100%;              
    width: auto;                  
    display: inline-block;        
    margin: 0 auto;
}

.contact-card a[href^="mailto:"] {
    max-width: 220px;
    font-size: 14px; 
}

.contact-card a:hover {
    color: #667eea;
}

/* Репозиторий */
.repo-card {
    background: #764ba2;
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.repo-card i {
    font-size: 50px;
}

.repo-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.repo-content a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.repo-content a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Хедер в dashboard */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #f8fafd;
    padding: 20px;
    border-radius: 15px;
}

#logoutBtn {
    background: #ff4757;
}

#logoutBtn:hover {
    background: #ff3344;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}


@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .url-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .url-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .contacts-section {
        grid-template-columns: 1fr;
    }
    
    .repo-card {
        flex-direction: column;
        text-align: center;
    }
}