:root {
    --primary-color: #6c5ce7;
    --secondary-color: #81ecec;
    --text-color: #2d3436;
    --bg-color: #ffffff;
    --card-bg: #f1f2f6;
    --header-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
    --primary-color: #a29bfe;
    --secondary-color: #159090;
    --text-color: #dfe6e9;
    --bg-color: #2d3436;
    --card-bg: #353b48;
    --header-bg: rgba(45, 52, 54, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.content {
    flex: 1 0 auto;
    /* Add padding to account for footer height */
    padding-bottom: 60px; /* Adjust this value based on your footer's height */
}

header {
    background-color: var(--header-bg);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
    font-weight: 300;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem;
}

section {
    margin-bottom: 5rem;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero {
    text-align: center;
    padding: 6rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    margin-bottom: 5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    padding: auto;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding: auto;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer {
    flex-shrink: 0;
    /* Set a fixed height for the footer */
    height: 110px; /* Adjust this value to match your footer's height */
    /* Ensure the footer stays at the bottom */
    margin-top: auto;
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.floating-action-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}