:root {
    --red: #ff3d3d;
    --red-dark: #cf2d28;
    --dark: #1a1d21;
    --dark-lighter: #2b2e32;
    --white: rgb(245, 245, 245);
    --accent: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #ff3d3d 0%, #ff6b35 50%, #cf2d28 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 61, 61, 0.3);
    --border-radius: 16px;
}

.hero-projects {
    padding-top: 140px;
    max-width: 1600px;
    margin: 0px auto ;
    min-height: 100vh;
    width: 80vw;
    display:flex;
    flex-wrap:wrap;
}

.hero-projects h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  animation: fadeInUp 0.6s ease;
}

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr;
    padding-top:20px
}

.project-details {
    display: flex;
    flex-direction: column;
    padding: 20px;

}

.project-card {
    background: var(--dark);
    border: 1px solid var(--dark-lighter);
    border-radius: 12px;
    overflow: hidden;
    color: white;
    transition: transform 0.2s ease;
}

.project-card img {
    width: 100%;
    object-fit: contain;
}

.project-details h3 {
    font-size: 1.7rem;
}

.project-details p {
    font-size: 1.2rem;
}

.project-details a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    background-color: var(--dark-lighter);
    width: fit-content;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all .2s;
}

.project-details a:hover {
    transform: translateX(5px);
    background: var(--red);
    box-shadow: 0 5px 15px rgba(255, 61, 61, 0.4);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: var(--dark-lighter);
    padding: 2rem;
    border-radius: 12px;
    max-width: 1200px;
    width: 90%;
    position: relative;
    height: 100%;
    overflow: scroll
}

.modal-content img {
    width: 100%;
    margin: 1rem 0;
    border-radius: 8px;
}

#modal-desc,
#modal-title {
    color: var(--white)
}

#modal-title {
    font-size: 1.4rem
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--red);
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    height: 220px;
    cursor: pointer;
}

.scrollLock{
    overflow: hidden;
}

@media screen and (max-width:860px){
    .grid {
    grid-template-columns: 100%;
}
}