/* Global Constants*/
:root {
    --max-width: 1200px; /* Define your max-width constant */
}

/* General styles for the entire page */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #1c1c1c;
    text-align: left;
}

/* Header container styles */
.header-container {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background: #ffffff;
    color: #244656;
    display: flex; /* Enables flexbox layout */
    align-items: center; /* Align items (icon and text) vertically at the same height */
    justify-content: center; /* Centers the h1 within the available space */
    gap: 1rem; /* Adds space between the icon and the h1 */
    padding: 1rem; /* Optional: Adds spacing inside the header */
}

/* Icon styles */
.header-icon {
    width: 100px; /* Set the icon width */
    height: 100px; /* Set the icon height */
    margin-right: auto; /* Pushes the icon to the far left */
}
.header-icon-right {
    width: 100px; /* Set the icon width */
    height: 100px; /* Set the icon height */
    margin-right: 0%; /* Pushes the icon to the far left */
}

/* Header text styles */
.header-container h1 {
    text-decoration: underline;
    flex-grow: 1; /* Allows the h1 to take up available space */
    text-align:center; /* Centers the text horizontally */
    margin: 0; /* Removes default margins */
    font-size: 3rem; /* Adjusts the font size */
    color: #244656; /* Light blue for contrast */
}


/* Navigation styles */
nav {
    background: #244656;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #4A90E2;
    border-bottom: 2px solid #4A90E2;
    transition: all 0.3s ease-in-out;
}

/* Section styles */
section {
    padding: 2rem;
    margin: 1rem auto;
    max-width: var(--max-width); /* Set Max Width to default */
    background: linear-gradient(to bottom, #244656, #1c1c1c);
    color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

section h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.about p {
    padding-left: 50%;
}

.about img {
    width: 120px;
    height: 120px;
}

#about-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

#about-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

/* Code Example Styles */
pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'Courier New', Courier, monospace;
    margin: 1rem 0;
    text-align: left;
}

pre code {
    display: block;
    white-space: pre-wrap;
    color: #61dafb; /* Highlighted code color */
}

/* Power Automate Workflows Section */
section.power-automate {
    padding: 2rem;
    margin: 1rem auto;
    max-width: 200px;
    background: #000000;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: left;
}

section.power-automate h2 {
    color: #007BFF;
    text-align: left;
    margin-bottom: 1rem;
}

section.power-automate p {
    font-size: 1rem;
    color: #dad7d7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Tutorials Section Styles */
section.tutorials {
    padding: 2rem;
    margin: 0 auto;
    max-width: var(--max-width); /* Set Max Width to default */
    background: linear-gradient(to bottom, #244656, #1c1c1c);
    color: #fff;
    border-radius: 8px;
    text-align: center;
}


section.tutorials h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

section.tutorials p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
}

/* Tutorial Grid */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Set 3 columns */
    gap: 1.5rem; /* Space between cards */
    justify-content: center;
    margin: 0 auto; /* Center the grid on the page */
    max-width: var(--max-width); /* Set Max Width to default */
}

/* Tutorial Card */
.tutorial-card {
    background: #2b2b2b; /* Match the dark card background */
    border-radius: 12px; /* Rounded corners */
    padding: 1rem;
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Center icon and text horizontally */
    justify-content: center; /* Center content vertically */
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Subtle shadow */
}

/* Hover Effect */
.tutorial-card:hover {
    transform: translateY(-5px); /* Lift card slightly */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Tutorial Icon */
.tutorial-card img {
    width: 60px; /* Consistent size for all icons */
    height: 60px;
    margin-bottom: 1rem; /* Space between icon and text */
}

/* Tutorial Title */
.tutorial-card a {
    font-size: 1rem;
    color: #61dafb; /* Vibrant blue link color */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.tutorial-card a:hover {
    color: #9bdbff; /* Slightly lighter blue on hover */
}

/* Contact form styles */
form {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: var(--max-width); /* Set Max Width to default */
    margin: 0 auto;
}

form label {
    margin-top: 1rem;
    font-weight: bold;
    text-align: left;
}

form input, form textarea {
    margin-top: 0.5rem;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    background: #333;
    color: #fff;
    cursor: pointer;
    border: none;
    margin-top: 1rem;
    padding: 0.7rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

form button:hover {
    background: #555;
}

footer {
    background: #1c1c1c;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

footer a {
    color: #4A90E2;
    text-decoration: none;
}

.project {
    background: linear-gradient(to bottom, #232323, #1c1c1c);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease;
}

/* Card styles */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px;
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    width: calc(28% - 20px);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card img {
    max-width: 100%;
    border-radius: 8px;
}

.card h3 {
    font-size: 1.5rem;
    margin-top: 10px;
    color: #007BFF;
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    section {
        margin: 0.5rem;
        padding: 1rem;
    }

    pre {
        font-size: 0.9rem;
    }
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }

    section {
        padding: 0.5rem;
    }
    .tutorial-grid {
        grid-template-columns: 1fr; /* 1 column for small screens */
    }
}
