@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root {
    --background-image: url('Photos/bg2.png');
    --background-color: #ffffff;
    --text-color: #000000;
    --primary-color: #a065db;
    --secondary-color: #e7ecef;
    --card-background-color: #ffffff;
    --footer-background-color: #000000;
    --footer-text-color: #ffffff;
}

body.dark-mode {
    --background-image: url('Photos/bg2(dark).png');
    --background-color: #1e1e1e;
    --text-color: #f5f5f5;
    --primary-color: #bb86fc;
    --secondary-color: #333333;
    --card-background-color: #2c2c2c;
    --footer-background-color: #121212;
    --footer-text-color: #bb86fc;
}

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--secondary-color);
    width: 90%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 200px;
    border-radius: 100px;
    margin: 40px 5% 0 5%;
}

.logo {
    text-decoration: none;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.8em;
}

.navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    padding-left: 35px;
}

.navigation a:hover {
    color: var(--text-color);
}

#dark-mode-toggle {
    cursor: pointer;
    font-size: 1.5em;
}

section{

    padding: 100px 200px;
}


.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: var(--secondary-color);
    /* position: relative; */
}

/* .main .img {
    background-image: var(--background-image);
    filter: blur(8px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-size: cover;
    background-position: center; 
} */

.main h2 {
    color: var(--text-color);
    font-size: 1.4em;
    font-weight: 500;
}

.main h2 span {
    display: inline-block;
    margin-top: 1px;
    color: var(--primary-color);
    font-size: 3em;
    font-weight: 400;
}

.main h3 {
    color: var(--text-color);
    font-size: 2em;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 30px;
}

.main-btn {
    color: #fff;
    background-color: var(--primary-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.5s ease;
}

.main-btn:hover {
    background-color: var(--text-color);
    transform: scale(1.1);
}

.social-media a {
    color: var(--text-color);
    font-size: 1.7em;
    padding: 30px;
}

.title {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

.contant {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.card {
    background-color: var(--card-background-color);
    width: 25.25em;
    box-shadow: 0 5px 25px rgba(1, 1, 1, 15%);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.7s ease;
}

.card a {
    text-decoration: none;
}

.card:hover {
    transform: scale(1.1);
}

.icon {
    color: var(--primary-color);
    font-size: 8em;
    text-align: center;
}

.info {
    text-align: center;
    color: var(--text-color);
}

.info h3 {
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}

.projects {
    background-color: var(--secondary-color);
    text-decoration: none;
}

.contact .icon {
    font-size: 4.5em;
    color: var(--primary-color);
}

.contact .info h3 {
    color: var(--text-color);
}

.contact .info p {
    font-size: 1.5em;
}

.footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
    display: flex;
    padding: 2em;
    justify-content: space-between;
}

.footer a {
    color: var(--footer-text-color);
}

/* Responsive styles */
@media (max-width: 1200px) {
    header {
        padding: 10px 100px;
    }

    section {
        padding: 100px 100px;
    }
}

@media (max-width: 992px) {
    header {
        padding: 10px 50px;
        flex-direction: column;
    }

    .navigation {
        margin-top: 10px;
    }

    section {
        padding: 100px 50px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 20px;
    }

    section {
        padding: 80px 20px;
    }

    .main h2 span {
        font-size: 2.5em;
    }

    .main h3 {
        font-size: 1.5em;
    }

    .main-btn {
        padding: 0.75em 1.5em;
    }

    .social-media a {
        padding: 20px;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    header {
        padding: 10px 10px;
    }

    .logo {
        font-size: 1.5em;
    }

    .navigation a {
        font-size: 1em;
        padding-left: 20px;
    }

    .main h2 {
        font-size: 1.2em;
    }

    .main h2 span {
        font-size: 2em;
    }

    .main h3 {
        font-size: 1.2em;
    }

    .main-btn {
        padding: 0.5em 1em;
    }

    .social-media a {
        font-size: 1.5em;
        padding: 15px;
    }

    .title {
        font-size: 1.8em;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    .icon {
        font-size: 5em;
    }

    .contact .icon {
        font-size: 3em;
    }

    .contact .info p {
        font-size: 1.2em;
    }
}
