html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Merriweather', serif;
    color: #fff;
    background: linear-gradient(to bottom, #2c3e50, #3D405B 90%);
    background-image: url('./images/bg-img.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeInUp 2s;
    
}

h1,
h2 {
    letter-spacing: 1px;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s;
}

h2 {
    font-size: 1.3rem;
    color: #F2CC8F;
    margin-bottom: 15px;
}

p {
    margin-bottom: 12px;
    color: #f3f3f3;
}

header {
    text-align: center;
    padding: 60px 15px 20px;
    background: rgba(61, 64, 91, 0.7);
    border-bottom: 2px solid #3D405B;
    margin-top: 40px;
}

header p {
    font-size: 1.2rem;
    color: #eee;
}

.navbar {
    top: 0;
    width: 100%;
    background-color: rgba(61, 64, 91, 1.0);
    padding: 5px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.navbar ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: #F2CC8F;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.navbar a:focus,
.navbar a:hover,
.navbar .nav-link.active {
    background: #F2CC8F;
    color: #3D405B !important;
    outline: none;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

section {
    margin: 30px auto;
    max-width: 700px;
    padding: 25px 30px;
    width: 80%;
    max-width: 600px;
    background: rgba(28, 31, 43, 0.85);
    text-align: center;
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 3px;
    background: conic-gradient(from var(--angle),
            #F4F1DE, #E07A5F, #3D405B, #81B29A, #F2CC8F);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    --angle: 0deg;
    transition: opacity 0.3s ease;
}

section:hover::before {
    animation: 4s spin linear infinite;
    opacity: 1;
}

@keyframes spin {
    from {
        --angle: 0deg;
    }

    to {
        --angle: 360deg;
    }
}

@media (max-width: 600px) {

    header,
    section {
        padding: 15px 5vw;
        
    }

    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }

    .icon,
    .section-icon {
        width: 32px;
    }
}

.section-icon,
.icons,
.icon {
    width: 40px;
    margin: 0 5px;
    display: inline;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.section-icon:hover,
.icons:hover,
.icon:hover {
    transform: scale(1.1);
}

.paragraph {
    text-align: left;
    padding-left: 12px;
    margin: 10px 0;
    position: relative;
}

/* .paragraph::before {
    content: "<p>";
    color: #64dfdf;
    font-size: 0.9em;
    position: absolute;
    left: -30px;
    top: 0;
}

.paragraph::after {
    content: "</p>";
    color: #64dfdf;
    font-size: 0.9em;
    position: absolute;
    left: -30px;
    bottom: 0;
} */

.my-contact a {
    color: #56cfe1;
    font-weight: 500;
    margin: 0 8px;
    display: inline-block;
    transition: color 0.2s;
}

.my-contact a:hover,
.my-contact a:focus {
    color: #fff;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 15px;
    background: rgba(61, 64, 91, 1.0);
    margin-top: auto;
}

.icon {
    width: 25px;
    margin: 0 5px;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

.page-header {
    background-color: #FF8A5B;
    border-radius: 16px;
    padding: 100px 40px;
    margin-bottom: 40px;
}