@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&family=Ubuntu:wght@300;400;500;700&display=swap');

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

body {
    font-size: 14px;
}

header {
    width: 100%;
    height: 100vh;
    background-color: #2b2f4b;
    color: #fff;
    position: relative; /* Needed for absolute children */
}

header #particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

header .info-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    height: 100vh;
    text-align: center; /* Center text alignment */
    padding: 0 20px; /* Add padding for smaller screens */
}

header .info-text h1 {
    font-size: 5rem;
    font-weight: 500;
    font-family: 'Ubuntu';
    margin: 0;
}

header .info-text h3 {
    font-size: 1.5rem;
    margin: 0; /* Remove default margin */
}

.text-content p {
    font-size: 1.2rem; /* Adjust for responsiveness */
    margin: 0; /* Remove default margin */
}

header .info-text .scroll {
    position: absolute;
    bottom: 20%;
    left: 50%;
    color: #fff;
    transform: translate(-50%, 0); /* Center horizontally */
    transition: all 0.5s;
}

header .info-text .scroll:hover {
    opacity: 0.7;
}

header .info-text .scroll::before {
    position: absolute;
    top: -16px;
    left: -16px;
    z-index: -1;
    content: '';
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1);
    border-radius: 100%;
    animation: pulse 3s infinite;
}

header .info-text img {
    max-width: 100px;
    height: auto;
    border-radius: 50%; /* Optional for circular effect */
    object-fit: cover; /* Ensures the image fits within the circle */
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
    }
    15%, 45% {
        opacity: 1;
    }
    60% {
        box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1);
        opacity: 0;
    }
}

/* Sections styling */
#about, #features {
    background-color: #2b2f4b;
    padding: 40px;
}

#about .header, #features .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

#about .header h1, #features .header h1 {
    text-align: center;
    color: #fff;
    text-transform: uppercase;
}

#about .header a, #features .header a {
    text-decoration: none;
    font-size: 1.3em;
    color: #fff;
    border: 1px solid transparent;
    padding: 10px 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    transition: all 0.3s ease;
}

#about .header a:hover, #features .header a:hover {
    border-color: #fff;
    box-shadow: none;
}

/* Card Styling */
#about .card, #features .card {
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    border-radius: 20px;
    display: flex;
    gap: 30px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

#about .card:hover, #features .card:hover {
    border-color: #fff;
    box-shadow: none;
}

#about .card img {
    max-width: 150px;
    height: auto;
    border-radius: 50%; /* Optional for circular effect */
    object-fit: cover; /* Ensures the image fits within the circle */
}

#about .card .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#about .card .info h1, #features .card .info h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: bold;
    font-family: 'Ubuntu';
}

#about .card .info p, #features .card .info p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8rem;
}

/* Features Card Layout */
#features .feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

#features .feature-cards .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 350px;
}

#features .feature-cards .card .info i {
    color: #fff;
    font-size: 8rem;
    width: 100%;
    text-align: center;
    margin-bottom: 1.4rem;
}

#features .feature-cards .card .info h1 {
    text-align: center;
}

#features .feature-cards .card .info p {
    font-size: 1.1rem;
}

/* Scroll to Top Button */
.scroll-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2b2f4b;
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    padding: 16px 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    border-color: #fff;
    box-shadow: none;
}

/* GitHub Link Styling */
.github-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: white; /* Change text color as needed */
    background-color: #065291; /* Background color for visibility */
    padding: 4px 8px; /* Padding for a smaller button */
    border-radius: 5px;
    font-size: 0.8rem; /* Smaller font size */
    font-weight: bold; /* Make it bold */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Smaller shadow for effect */
}

.github-link:hover {
    background-color: #555; /* Change background color on hover */
    transform: translateY(-1px); /* Slight lift effect on hover */
}

/* Responsive Styles */
@media screen and (max-width: 720px) {
    header .info-text h1 {
        font-size: 4rem;
    }

    header .info-text h3 {
        font-size: 1.1rem;
    }

    #about .card {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center;
    }

    #about .card img {
        max-width: 150px;
        max-height: 150px; /* Ensure image is responsive */
    }
}
