/* Обнуление стилей */
@import 'normalize.css';

/* Variables */
:root {
    --primary-color: #007BFF;
    --hover-color: #0056b3;
    --light-shade: rgba(0, 123, 255, 0.1);
    --text-shadow-color: rgba(0, 0, 0, 0.1);
    --box-shadow-color: rgba(0, 0, 0, 0.3);
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('back.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;  /* Center container horizontally */
    align-items: center;      /* Center container vertically */
    min-height: 100vh;        /* Take the full viewport height */
    line-height: 1.5;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    gap: 30px;
}

/* Mobile view: single column layout */
@media (max-width: 767px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Desktop view: two columns layout */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Component Styles */
header, section.about, section.links, .contacts {
    width: calc(50% - 10px); /* Adjusting width */
    background: 
        linear-gradient(45deg, #fff 25%, transparent 25%),
        linear-gradient(-45deg, #fff 25%, transparent 25%),
        #f8f8f8;
    background-size: 200px 200px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--box-shadow-color);
    padding: 10px;
    transition: all 0.3s ease-in-out;
    width: 100%; /* Ensure all blocks take the full width of the container */
    clip-path: polygon(100% 0, 100% 75%, 75% 100%, 0 100%, 0 0);
}

header:hover, section.about:hover, section.links:hover, .contacts:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px var(--box-shadow-color);
}

.header {
    text-align: center;
}

.profile {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 5px solid white;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
}

.profile:hover {
    transform: scale(1.1);
}

h1 {
    text-shadow: 2px 2px 2px var(--text-shadow-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.links ul, .contacts ul {
    list-style-type: none;
    padding: 0;
}

.links li, .contacts li {
    margin: 10px 0;
}

.links a, .contacts a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 5px;
}

.links a:hover, .contacts a:hover {
    color: var(--hover-color);
    transform: scale(1.05);
    background-color: var(--light-shade);
}

.contacts i {
    margin-right: 10px;
}
