* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
nav, header, footer {
    font-family: Arial, Helvetica, sans-serif; /*font in more specific areas*/
}
main {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

/* nav bar style*/
nav {
    background-color: rgb(232, 218, 239);
    color: #3a063d;
}
.nav-heading:first-child {
    margin: 0;
    text-align: center;
    padding: 30px 20px 20px 20px;
}
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
/* Link Styling */
nav a {
    text-decoration: none;
    color: #3a063d;
    position: relative;
    padding: 5px 0;
}
/* Custom Underline */
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #3a063d;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom center;
}
nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom center;
}
nav a:not(.active) {  /*10. Negation pseudo class*/
    font-weight: bold;
    opacity: 0.7;
    color: #3a063d;
}
nav a.active {
    font-weight: bold;
    opacity: 1;
    color: #510e54;
}

/* Social Icon Styling */
.social-icons {
    display: flex;
    gap: 5px;
}

/* Footer Styling */
footer {
    background-color: rgb(232, 218, 239);
    color: rgb(74, 35, 90);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}
footer nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}
footer nav ul li {
    display: inline;
    margin: 0 10px;
}
footer nav ul li a {
    text-decoration: none;
    color: rgb(74, 35, 90);
    transition: color 0.3s ease;
}
footer nav ul li a:hover {
    color: #5c257f;
}
/* Social Media Links Styling */
.social-media {
    margin: 10px 0;
}
.social-media p {
    margin: 0;
    font-weight: bold;
}
.social-link {
    font-size: 1.5em; /* Adjust icon size */
    color: rgb(74, 35, 90);
    margin: 0 8px;
    transition: color 0.3s ease;
}
.social-link:hover {
    color: #8043a7; /* Change color on hover */
}
.home-side .social-icons {
    display: block;
    padding: 10px;
    margin-bottom: 10px; /* Adds space between icons */
}

 /*header style*/
header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #e8daef, #a569bd);
    color: #3a063d;
    padding: 70px 0;
    animation: headerFadeIn 1.5s ease-in-out;
}
.header-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    justify-content: space-between;
    padding: 0 200px;
}
.intro-text h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/*Home page styling------------------------------------*/
.me-description {
    text-align: center;
    padding: 50px;
}
.me-description h1, .me-description h3 {
    font-size: xx-large;
    color: #510e54;
} 

/* Flex Container Styling */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 80px 20px;
}
/* Flex Item Styling */
.flex-container a {
    flex: 1;
    text-decoration: none; /* Remove link underline */
}
.flex-container > a > div {
    position: relative;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s; /* Smooth transition for hover */
    height: 400px;
}
/* Background Images */
.About {
    background: url('Images/seni2.jpg') center/cover no-repeat;
}
.blog {
    background: url('Images/seni3.jpg') center/cover no-repeat;
}
.Contact {
    background: url('Images/seni5.jpg') center/cover no-repeat;
}
/* Translucent Overlay */
.flex-container > a > div::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /*2. Adjust opacity for translucency */
    z-index: 1;
}
/* Text Styling */
.flex-container p {
    position: relative;
    z-index: 2;
    margin: 0;
}
/* Hover Effect */
.flex-container a:hover > div {
    transform: scale(1.05); /* Pop-up effect on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Adds shadow for depth */
}

/*About page styling---------------------------------*/


/*Blog page styling------------*/
.blog-blog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    padding: 50px;
}
.blog-card {
    background-color: rgb(244, 236, 247, 0.8);
    border-radius: 10px;
    box-shadow: 10px 10px 6px rgba(0,0,0,0.1);
    width: 500px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.blog-card:hover {
    transform: scale(1.05);
}
.blog-card-slideshow {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.blog-card-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.blog-card-image.active {
    opacity: 1;
}
.blog-card-content {
    padding: 15px;
}
.blog-ar-topic h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}
.blog-ar-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}
.blog-ar-description {
    font-size: 0.9rem;
    color: #444;
}

/*Contact page styling------------*/
.contact-form{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 50px;
}
.form-section {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background-color: rgb(244, 236, 247);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(54, 3, 65, 0.868);
}
form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}
form input[type="text"],  /*Attribute selectors (minimum 2)*/
form input[type="email"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
form button {
    width: 100%;
    padding: 10px;
    background-color: #6C3483;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
form button:hover {
    background-color: #A569BD;
}
form input:nth-child(2) { /*11. Nth pseudo class*/
    background-color: #e1d1e0;
}
form input:nth-child(6) {
    background-color: #e1d1e0;
}
form input[type="email"]:valid {
    border-color: #28a745; /* Green border for valid input */
    background-color: #e6f7e6; /* Light green background */
}
form input[type="email"]:invalid {
    border-color: #dc3545; /* Red border for invalid input */
    background-color: #f8d7da; /* Light red background */
}
label + input {  /*13. Relational selector */
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ddd;
}

/* Animation */
@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes imgBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Adjustments for Tablets and Smaller Screens */
@media (max-width: 768px) {
    /* Header - Stack elements vertically */
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .header-content h1 {
        font-size: 2rem;
    }
    
    /* Navbar - Stack links vertically */
    nav ul {
        flex-direction: column;
        gap: 10px;
        padding: 0;
    }

    /* Flex Container - Stack items vertically */
    .flex-container {
        flex-direction: column;
        align-items: center;
    }
    /* Adjust padding and height of flex items */
    .flex-container > a > div {
        padding: 30px 10px;
        height: auto;
        width: 100%; /* Make items take full width */
    }
    /* Footer - Center align for smaller screens */
    footer nav ul {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* Further Responsive Adjustments for Mobile Screens */
@media (max-width: 480px) {
    /* Navbar - Reduce padding */
    nav {
        padding: 10px;
    }
    .nav-heading h1 {
        font-size: 1.5rem;
    }

    /* Header - Reduce font sizes */
    .intro-text h1 {
        font-size: 1.8rem;
    }
    /* Section Text */
    .me-description h1,
    .me-description h3 {
        font-size: 1.5rem;
    }
    .me-description p {
        font-size: 1rem;
    }

    /* Flex Container - Smaller padding */
    .flex-container {
        padding: 20px 10px;
    }

    /* Footer text size and padding */
    footer {
        padding: 15px;
        font-size: 0.8em;
    }
    /* Footer social media icons - adjust icon size */
    .social-link {
        font-size: 1.2em;
    }
}





