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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Container */
.container {
    width: 80%;
    margin: 0 auto;
}

/* Header Section */
header {
    background: #333;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-bottom: 20px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.5em;
    color: #bbb;
}

/* Categories Section */
.categories {
    padding: 80px 0;
    background: #fff;
    text-align: center;
    z-index: 2;
}

.categories h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

.category-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr); /* Creates 5 equal-width columns */
        gap: 50px; /* Optional: Adds spacing between items */
      
}

.category {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    justify-content: center;
}

.category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.category-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #fff;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

/* Parallax Section */
.parallax-section {
    background-image: url('assets/images/img4.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 0;
}



/* Featured Images Section */
#featured-images {
    margin: 100px 0;
    position: relative;
}

.featured-image {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.featured-image.left {
    transform: translateX(-100px); /* Изображение слева */
}

.featured-image.right {
    transform: translateX(100px); /* Изображение справа */
}

.featured-image.show {
    opacity: 1;
    transform: translateX(0); /* Выплывание */
}

.featured-image .caption {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}

/* Gradient Section */
#gradient-section {
    height: 500px;
    background: linear-gradient(90deg, rgba(47, 47, 47, 0.7), rgba(255, 229, 250, 0.7));
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background 0.3s ease-in-out;
    overflow: hidden;
}

.gradient-overlay {
    text-align: center;
    color: #fff;
    z-index: 1;
    font-size: 24px;
    font-weight: bold;
}

#gradient-section h2 {
    margin-bottom: 20px;
}

#gradient-section p {
    font-size: 16px;
}



/* Footer Section */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


#education-skills {
    background-color: #f9f9f9;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
  }
  
  #education-skills .container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  #education-skills h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  .education-list, .skills-list {
    list-style-type: none;
    padding: 0;
  }
  
  .education-list li, .skills-list li {
    background: #fff;
    margin: 10px 0;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
  }
  
  .skills-list li {
    position: relative;
    padding-left: 25px;
  }
  
  .skills-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 1rem;
  }
  
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
  }
  
  .skill-item {
    background-color: #e6e6e6;
    color: #333;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .skill-item:hover {
    background-color: #d4d4d4;
    transform: scale(1.05);
  }
  