/* Importing Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Light Mode (Default) */
:root {
    --background-color: #ffffff;
    --text-color: #000000;
    --primary-color: #3a6cf4;
    --secondary-color: #601cfc;
    --header-bg-color: #f0f0f0;
    --card-bg-color: #ffffff;
    --footer-bg-color: #000016;
}

/* Dark Mode */
[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --primary-color: #bb86fc;
    --secondary-color: #3700b3;
    --header-bg-color: #1f1f1f;
    --card-bg-color: #1e1e1e;
    --footer-bg-color: #1f1f1f;
}
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Header */
header {
    background-color: var(--header-bg-color);
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
}

.logo {
    text-decoration: none;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
}

.navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}

.navigation a:hover {
    color: var(--secondary-color);
}
#theme-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5em;
    cursor: pointer;
    outline: none;
    margin-left: 20px;
}

#theme-toggle:hover {
    color: var(--secondary-color);
}


/* Main Section (Home) */
section {
    padding: 100px 200px;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(images/background.jpeg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main h2 {
    color:var(--primary-color);
    font-size: 1.4em;
    font-weight: 500;
}

/* .main h2 span {
    display: inline-block;
    margin-top: 10px;
    color: #4e9eff;
    font-size: 3em;
    font-weight: 600;
} */

.main h3 {
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0px;
    margin-top: 5px;
    margin-bottom: 25px;
}

.main-btn {
    color: var(--primary-color);
    background-color: var(--background-color);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9375em 2.1875em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.7s ease;
}

.main-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.social-icons a {
    color: var(--primary-color);
    font-size: 1.7em;
    padding-right: 30px;
}

/* Section Titles */
.title {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

/* Cards for Sections */
.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.card {
    background-color:var(--card-bg-color);
    width: 21.25em;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 0.15);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.7s ease;
}

.card:hover {
    transform: scale(1.1);
}

.card .icon {
    color: var(--primary-color);
    font-size: 8em;
    text-align: center;
}

.info {
    text-align: center;
}

.info h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 700;
    margin: 10px;
}

.info p {
    text-align: center;
    color:var(--text-color);
    font-size: 1.1em;
}

/* Projects Section */
.projects {
    background-color: var(--footer-bg-color);
}

.projects .content {
    margin-top: 30px;
}

.project-card {
    background-color:var(--background-color);
    border: 1px solid #fff;
    min-height: 14em;
    width: 23em;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px;
    transition: 0.7s ease;
}

.project-card:hover {
    transform: scale(1.1);
}

.project-card:hover .project-image {
    opacity: 0.9;
}

.project-image img {
    width: 100%;
}

.project-info {
    padding: 1em;
}

.project-category {
    font-size: 0.8em;
    color: var(--text-color);
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
}

.more-details {
    text-decoration: none;
    color: #3a6cf4;
}

.more-details:hover {
    color: #601cfc;
}

/* Contact Section */
.contact .icon {
    font-size: 4.5em;
    color: var(--primary-color);
    text-align: center;
}

.contact .info h3 {
    color:var(--text-color);
}

.contact .info p {
    font-size: 1em;
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: #fff;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span {
    color: var(--primary-color);
}

.footer .social-icons a {
    font-size: 1.3em;
    padding: 0 12px;
}

/* Media Queries */
@media (max-width: 1023px) {
    header {
        padding: 12px 20px;
    }

    .navigation a {
        padding-left: 10px;
    }

    .title {
        font-size: 1.8em;
    }

    section {
        padding: 80px 20px;
    }

    .main-content h2 {
        font-size: 1em;
    }

    .main-content h3 {
        font-size: 1.6em;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 641px) {
    body {
        font-size: 12px;
    }

    .main-content h2 {
        font-size: 0.8em;
    }

    .main-content h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 300px) {
    body {
        font-size: 10px;
    }
}
