/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212;
    color: #F0EFF4;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #232323;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#logo {
    font-size: 2rem;
    font-weight: 700;
    color: #F0CF65;
    letter-spacing: 3px;
    text-shadow: 1px 1px 3px #d1b94f;
    user-select: none;
    cursor: default;
}

.nav-items {
    list-style: none;
    display: flex;
}

.nav-items li {
    margin: 0 25px;
}

.nav-items li a {
    color: #F0EFF4;
    text-decoration: none;
    font-size: 1.25rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-items li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #F0CF65;
    transition: width 0.3s ease;
}

.nav-items li a:hover {
    color: #F0CF65;
}

.nav-items li a:hover::after {
    width: 100%;
}

/* Section 1 */
.sec1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 80vh;
    background-image: url('WhatsApp Image 2024-06-12 at 18.50.03_f86f0056.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    padding-left: 3rem;
    position: relative;
    overflow: hidden;
}

.writing {
    max-width: 600px;
    animation: slideIn 1.5s ease forwards;
}

.writing h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #F0CF65;
    text-shadow: 2px 2px 6px #b39f45;
}

.writing p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #F0EFF4cc;
    animation: fadeIn 2s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.btn1 {
    width: 220px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(45deg, #F0CF65, #d9b33a);
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    color: #2e2b11;
    box-shadow: 0 4px 8px rgba(240, 207, 101, 0.6);
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
}

.btn1:hover {
    background: linear-gradient(45deg, #d9b33a, #F0CF65);
    box-shadow: 0 8px 16px rgba(240, 207, 101, 0.9);
    transform: scale(1.05);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(240, 207, 101, 0.7);
    }
    50% {
        box-shadow: 0 0 15px 10px rgba(240, 207, 101, 0);
    }
}

/* Fade-in and slide-in */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section 2 */
.sec2 {
    background-color: #232323;
    padding: 4rem 2rem;
    text-align: center;
    color: #F0CF65;
}

.sec2 hr {
    width: 120px;
    border: 2px solid #F0CF65;
    margin: 0 auto 1rem auto;
    border-radius: 5px;
}

.sec2 h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px #b39f45;
}

.grd1 {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sub1, .sub2, .sub3 {
    background-color: #ffffff; /* white box */
    color: #ff0000; /* black text */
    box-shadow: 0px 2px 6px rgba(0,0,0,0.2); /* halki shadow */
    width: 220px;
    height: 150px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: default;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    user-select: none;
}

.sub1:hover, .sub2:hover, .sub3:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transform: translateY(-10px);
}

/* Materials Section Styling */
.materials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 3rem 2rem;
    background-color: #1e1e1e;
    border-radius: 20px;
    max-width: 900px;
    margin: 3rem auto;
    box-shadow: 0 8px 25px rgba(240, 207, 101, 0.2);
}

.material-box {
    background: linear-gradient(135deg, #F0CF65, #d9b33a);
    width: 140px;
    height: 140px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.7rem;
    color: #2e2b11;
    box-shadow: 0 6px 15px rgba(217, 179, 58, 0.5);
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.material-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.material-box:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 12px 30px rgba(240, 207, 101, 0.9);
}

.material-box:hover::before {
    opacity: 1;
}

/* Footer */
footer {
    background-color: #3A3E3B;
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

footer a {
    color: #F0CF65;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

/* Responsive */
@media(max-width: 768px){
    .sec1 {
        justify-content: center;
        padding: 3rem 1rem;
        height: auto;
        text-align: center;
    }
    .writing {
        margin-left: 0;
        max-width: 90vw;
    }
    .writing h1 {
        font-size: 2.5rem;
    }
    .writing p {
        font-size: 1.2rem;
    }
    .btn1 {
        width: 180px;
        height: 45px;
        font-size: 1.2rem;
    }
    .grd1 {
        flex-direction: column;
        gap: 1.5rem;
    }
    .sub1, .sub2, .sub3 {
        width: 100%;
        max-width: 300px;
        height: 120px;
    }
    .nav-items {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-items li {
        margin: 10px 15px;
    }
    /* Materials responsive */
    .materials {
        max-width: 100%;
        padding: 2rem 1rem;
        gap: 15px;
    }
    .material-box {
        width: 120px;
        height: 120px;
        font-size: 1.4rem;
    }
}
