@import url(reset.css);

/* CSS Variables */
:root {
    --primary-color: #000000;
    --secondary-color: #e4a257;
    --text-color: #333;
    --sec-text-color: #fff;
    --font-family: Arial, sans-serif;
    font-size:30px;

    --background-color: #ffc2c2;
    --section-bg1: #ffffff; /* white */
    --section-bg2: #e0e0e0; /* light gray */
    --bgImage: url("../images/hero-images/bj.png") center center / cover; /* Add your image */
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
}

/* Splash Page Styles */
.splash-container {
    position: relative;
    height: 100vh;
}

.splash-image {
    background: var(--bgImage);
}

.splash-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--sec-text-color);
}

/* Splash Page Navigation Styles */
.splash-nav {
    padding: 20px;
    position: absolute; /* Position it absolutely for overlay effect */
    top: 100px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Center the menu */
    border-radius: 10px; /* Rounded corners */
}

.splash-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the menu items */
}

.splash-nav ul li {
    margin: 0 15px;
    position: relative; /* Needed for dropdown */
}

/* Dropdown Menu */
.splash-nav ul li ul {
    display: none; /* Hide dropdown initially */
    position: absolute; /* Position it relative to the parent */
    top: 100%; /* Place it below the parent */
    left: 0;
    background-color: #ffffff; /* White background */
    border-radius: 5px; /* Rounded corners */
    padding: 10px 0; /* Vertical padding for dropdown items */
    z-index: 10; /* Ensure dropdown appears above other content */
}

.splash-nav ul li:hover ul {
    display: block; /* Show dropdown on hover */
}

.splash-nav ul li ul li {
    white-space: nowrap; /* Prevent wrapping of text */
}

.splash-nav ul li ul li a {
    display: block; /* Make link occupy full width */
    padding: 8px 15px; /* Padding for links */
    color: #4db9e8; /* Blue text color */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

.splash-nav ul li ul li a:hover {
    background-color: #4db9e8; /* Change background color on hover */
    color: #ffffff; /* Change text color to white on hover */
}

/* Custom Styles for Tasks Container */
.tasks-container {
    max-width: 1200px; /* Limit max width for desktop */
    margin: 0 auto; /* Center the container */
    padding: 20px;
}

.tasks-container .content {
    column-count: 3; /* Default for desktop */
    column-gap: 20px; /* Space between columns */
}

.placeholder-image {
    width: 100%; /* Full width for image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Rounded corners */
    display: block; /* Ensure it behaves like a block element */
    margin-bottom: 15px; /* Space below the image */
}

p {
    line-height: 1.6; /* Improve readability */
}

/* General Navigation Styles */
nav {
    width: auto;
    height: auto;
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the menu items */
}

nav ul li {
    margin: 0 15px;
    position: relative; /* Needed for dropdown */
}

/* Dropdown Menu for General Navigation */
nav ul li ul {
    display: none; /* Hide dropdown initially */
    position: absolute; /* Position it relative to the parent */
    top: 100%; /* Place it below the parent */
    left: 0;
    background-color: var(--secondary-color);
    border-radius: 5px; /* Rounded corners */
    padding: 10px;
    width:150px;
}


nav ul li ul li {
    width:100%;
    height: 50px;
    line-height: 40px;
}
nav ul li:hover ul {
    
    display: block; /* Show dropdown on hover */
}

nav a {
    color: var(--sec-text-color);
    text-decoration: none;
    font-size: 18px; /* Set a font size for links */
    padding: 5px 10px; /* Add some padding */
    transition: background-color 0.3s ease; /* Smooth background change */
}

nav a:hover {
    background-color: var(--secondary-color); /* Change background on hover */
    border-radius: 5px; /* Rounded corners */
}


nav ul li ul li a:hover {
    background-color: var(--primary-color); /* Change background on hover */
    width: 100%;
    height: auto;
    
    border-radius: 5px; /* Rounded corners */
}

/* Portfolio Page Styles */
header {
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
    color: var(--sec-text-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 20px;
}

.portfolio-grid img {
    width: 100%;
    height: auto;
}

/* General Link Styles */
a {
    color: var(--primary-color); /* Use primary color for text links */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}

/* Hover Styles for All Links */
a:hover {
    color: var(--sec-text-color); /* Change text color on hover */
    background-color: var(--primary-color); /* Background color on hover */
    padding: 5px 10px; /* Add some padding for better click area */
    border-radius: 5px; /* Rounded corners for links */
}

/* Active Links */
a:active {
    color: var(--sec-text-color); /* Keep hover color when active */
    background-color: var(--secondary-color); /* Change background on active */
}

/* Button Link Styles */
.button-link {
    display: inline-block; /* Make it block for padding */
    background-color: var(--primary-color); /* Background color */
    color: var(--sec-text-color); /* Text color */
    padding: 10px 15px; /* Padding for button effect */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold; /* Bold text for emphasis */
    text-align: center; /* Center text */
    transition: background-color 0.3s ease; /* Smooth background change */
}

/* Button Link Hover */
.button-link:hover {
    background-color: var(--secondary-color); /* Change background on hover */
}

/* Tasks Page Styles */
main {
    padding: 20px;
}

article {
    background-color: var(--section-bg1);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
h1{
    font-family: "operetta-12", serif;
font-weight: 900;
font-style: italic;
}
article h2 {
    margin-top: 0;
}

.more-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.more-link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Splash Page Responsive */
    .splash-content h1 {
        font-size: 28px;
    }

    .splash-nav ul {
        flex-direction: column; /* Stack links vertically on smaller screens */
    }

    .splash-nav ul li {
        margin: 10px 0; /* Adjust margin for vertical layout */
    }

    .splash-nav a {
        font-size: 18px; /* Adjust font size for mobile */
    }

    /* General Navigation Responsive */
    nav ul {
        flex-direction: column; /* Stack links vertically on smaller screens */
    }

    nav ul li {
        margin: 10px 0; /* Adjust margin for vertical layout */
    }

    nav a {
        font-size: 16px; /* Adjust font size for mobile */
    }

    /* Tasks Container Responsive */
    .tasks-container .content {
        column-count: 2; /* Two columns for iPad */
    }

    /* Mobile Styles */
    @media (max-width: 480px) {
        .tasks-container .content {
            column-count: 1; /* One column for mobile */
        }
    }
}

.sub-menu  li{
    margin: 0 !important; 
}