/* Variables for easy theming and global changes */
:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --brand-color-purple: #747ce0;
    --brand-color-orange: #FFAB2B;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Example modern font */
}

/* Basic body styling */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--brand-color-purple);
    margin: 1em 0 0.5em;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Button styles */
button {
    background-color: var(--brand-color-orange);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: darken(var(--brand-color-orange), 10%);
}

/* Navigation bar */
nav {
    border-bottom: 2px solid var(--brand-color-purple); /* Subtle line */
    padding: 1em;
    text-align: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
    padding-bottom: 5px; /* Padding for better visual spacing */
}

nav a:hover {
    color: var(--brand-color-orange);
    border-bottom: 3px solid var(--brand-color-orange); /* Highlight on hover */
}

header {
    text-align: center;
}

/* Footer styles */
footer {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Section styles with shadow */
section {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 40px; /* Increased padding */
    margin: 40px auto; /* Centered with auto margins */
    max-width: 90%; /* Limit width to create space for shadows */
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    section {
        margin: 10px 0;
    }

    nav, footer {
        text-align: left;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Extended CSS for additional scenarios in a modern website */

/* Form styles */
input, textarea, select {
    border: 1px solid #ccc;
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

input[type="submit"], button[type="submit"] {
    background-color: var(--brand-color-purple);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover, button[type="submit"]:hover {
    background-color: darken(var(--brand-color-purple), 10%);
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: var(--brand-color-orange);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive image styles */
img {
    max-width: 100%;
    height: auto;
}

/* Hover effects */
a:hover {
    text-decoration: underline;
}

/* Utility class for visibility */
.hidden {
    display: none;
}

/* Responsive grid system */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: var(--background-color);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Breadcrumb navigation */
.breadcrumb {
    padding: 10px 0;
    list-style: none;
    background-color: #f5f5f5;
}

.breadcrumb li {
    display: inline;
    font-size: 0.85em;
}

.breadcrumb li+li:before {
    padding: 8px;
    color: var(--text-color);
    content: "/\\00a0"; /* Unicode character for space */
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Further Extended CSS for additional modern website scenarios */

/* Alert styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #31708f;
}

.alert-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
}

.alert-warning {
    background-color: #fcf8e3;
    border-color: #faebcc;
    color: #8a6d3b;
}

.alert-danger {
    background-color: #f2dede;
    border-color: #ebccd1;
    color: #a94442;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Animation styles */
.fadeIn {
    animation-name: fadeIn;
    animation-duration: 2s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive menu styles */
.responsive-menu {
    display: none;
}

@media (max-width: 768px) {
    .responsive-menu {
        display: block;
        cursor: pointer;
    }

    nav ul {
        display: none;
    }

    nav.active ul {
        display: block;
    }
}

/* Card layout styles */
.card {
    background-color: var(--background-color);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    border-radius: 10px 10px 0 0;
}

.card-container {
    padding: 2px 16px;
}

.team-list {
    list-style: none;
    padding: 0;
}

.team-member {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.team-photo {
    width: 100px;
    margin-right: 15px;
}

.team-info {
    text-align: left;
}

.team-info strong {
    display: block;
    margin-bottom: 5px;
}
