/* General Body and Layout */
body {
    background-color: #030014; /* Dark background from image */
    color: #918ea0; /* Default text color */
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

.container {
    max-width: 1280px; /* Adjust as per existing container or image */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Frosted glass effect */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-logo img {
    height: 30px; /* Adjust logo size */
    margin-right: 0.5rem;
}

.header-nav .btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    margin-left: 1rem;
    transition: background-color 0.3s ease;
}

.header-nav .btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-nav .btn-github i {
    margin-right: 0.5rem;
}

.header-nav .btn-settings {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.tag-line {
    background-color: rgba(134, 70, 244, 0.2);
    color: #8646f4;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
}

.hero-section h1 .highlight {
    color: #9cb2ff; /* Light blue/purple gradient effect */
    background: linear-gradient(90deg, #e59cff 0.01%, #ba9cff 50.01%, #9cb2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .description {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}

.feature-item i {
    color: #8646f4;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: #c0c0c0;
}

/* Portfolio Grid Section */
.portfolio-grid-section {
    padding: 5rem 0;
    background-color: #030014;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-image-container {
    position: relative;
    height: 200px; /* Fixed height for images */
    overflow: hidden;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-item .image-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-item .image-tag.new-tag {
    background-color: #8646f4;
}

.portfolio-item h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.portfolio-item p {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin: 0 1.5rem 1rem 1.5rem;
}

.portfolio-item .tags {
    display: flex;
    gap: 0.5rem;
    margin: 0 1.5rem 1.5rem 1.5rem;
    flex-wrap: wrap;
}

.portfolio-item .tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.portfolio-item .view-link {
    display: block;
    text-align: right;
    color: #8646f4;
    text-decoration: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-weight: 600;
}

.portfolio-item .view-link i {
    margin-left: 0.5rem;
}

/* Call to Action Section */
.cta-section {
    background-color: #1a202c; /* Dark blue background */
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(180deg, #030014 0%, #1a202c 100%); /* Dark gradient */
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-buttons .btn-github-lg {
    background-color: #8646f4;
    color: #fff;
    border: 1px solid #8646f4;
}

.cta-buttons .btn-github-lg:hover {
    background-color: #6e25ed;
    border-color: #6e25ed;
}

.cta-buttons .btn-template {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-template:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cta-buttons .btn i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: #030014;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .footer-logo {
    height: 30px;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #c0c0c0;
    font-size: 0.9rem;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4, .footer-social h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #8646f4;
}

.footer-links ul li i {
    margin-right: 0.5rem;
    color: #8646f4;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.footer-social .social-icon:hover {
    background-color: #8646f4;
}

.footer-social p {
    color: #c0c0c0;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    color: #c0c0c0;
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom i {
    color: #e59cff;
    margin: 0 0.3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .description {
        font-size: 1rem;
    }

    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand, .footer-links, .footer-social {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-logo span {
        display: none;
    }
    .header-nav .btn-github {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    .header-nav .btn-github i {
        margin-right: 0;
    }
    .header-nav .btn-github span {
        display: none;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .description {
        font-size: 0.9rem;
    }
    .stat-item .stat-number {
        font-size: 2rem;
    }
    .portfolio-item h3 {
        font-size: 1.2rem;
    }
    .portfolio-item p {
        font-size: 0.8rem;
    }
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .cta-buttons .btn {
        width: 90%;
    }
}
