@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #141212;
    color: white;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #141212; /* Particle background color */
    z-index: -1; /* Ensures the particles are behind other content */
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
}

.skills {
    padding: 5rem 9% 5rem;
    min-height: 60vh;
}

.skills-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-item {
    background-color: #222;
    border-radius: 1rem;
    padding: 2rem;
    flex: 1 1 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.videos {
    padding: 5rem 9%;
    min-height: 60vh;
    text-align: center; /* Centers the title and content */
    font-family: 'Poppins', sans-serif; /* Font family for this section */
}

.videos h2 {
    font-size: 3.5rem; /* Increase size of the title */
    font-weight: 600;
    color: #b74b4b; /* Color for the title */
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Larger minimum size for videos */
    gap: 20px;
    justify-items: center; /* Centers the videos */
    margin: 0 auto; /* Ensures the grid is centered */
}

.video-item {
    background-color: #222;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1000px; /* Maximum width for larger videos */
    transition: transform 0.3s ease; /* Smooth transition for scaling */
}

.video-item iframe {
    width: 100%;
    height: 600px; /* Increase height of the iframe */
    border: none;
}

/* When an iframe is focused (clicked or played), make it larger */
.video-item iframe:focus {
    transform: scale(1.2); /* Slightly larger for focus effect */
    z-index: 10; /* Bring it to the front */
    transition: transform 0.3s ease; /* Smooth transition */
}

footer {
    text-align: center;
    padding: 1rem;
}

/* Count particles styles */
.count-particles {
    background: #000022;
    position: absolute;
    top: 48px;
    left: 0;
    width: 80px;
    color: #13E8E9;
    font-size: .8em;
    text-align: left;
    text-indent: 4px;
    line-height: 14px;
    padding-bottom: 2px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
}

.js-count-particles {
    font-size: 1.1em;
}

#stats,
.count-particles {
    -webkit-user-select: none;
    margin-top: 5px;
    margin-left: 5px;
}

#stats {
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}

.count-particles {
    display: none;
}
