/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f0f11;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(15, 15, 17, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: #8c8c8e;
    border-color: #8c8c8e;
    background-color: rgba(140, 140, 142, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    rotate: 45deg;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0f11;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 10%);
    background-size: 10px 20px;
    animation: moveBackground 10s linear infinite;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 00px;
    }
}

.hero-content h1 {
    font-size: 64px;
    margin-bottom: 0px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-content .subtitle {
    font-size: 32px;
    max-width: 800px;
    font-weight: 500;
    margin: 0 auto 40px;
    letter-spacing: 1px;
    color: #8c8c8e;
}

.hero-content .hero-description {
    font-size: 18px;
    color: #b8b8ba;
    margin: 20px auto 40px;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0f0f11;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 30px;
    border: 1px solid #8c8c8e;
}

.cta-button:hover {
    background-color: #8c8c8e;
    color: #0f0f11;
    transform: translateY(-3px);
}

.cta-button.primary {
    background-color: #8c8c8e;
    color: #0f0f11;
    border: 1px solid #8c8c8e;
}

.cta-button.primary:hover {
    background-color: #fff;
    color: #0f0f11;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: #8c8c8e;
    border: 1px solid #8c8c8e;
}

.cta-button.secondary:hover {
    background-color: #8c8c8e;
    color: #0f0f11;
    transform: translateY(-3px);
}

/* Projects Section */
.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    background: #0f0f11;
    border: 1.5px solid #8c8c8e;
    border-radius: 14px;
    padding: 10px 20px;
    overflow: hidden;
}

.projects-header::before,
.projects-header::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5px; /* Thickness of the lines */
    background-color: #8c8c8e; /* Line color */
}

.projects-header::before {
    left: 70px; /* Adjust to position between the left icon and title */
}

.projects-header::after {
    right: 70px; /* Adjust to position between the title and right icon */
}

.projects-header h2 {
    margin: 0;
    padding: 0 20px;
    font-size: 36px;
    color: #fff;
    text-align: center;
    flex-grow: 1; /* This allows the title to take up the remaining space */
}

.header-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-icon {
    margin-left: -2px; /* Slightly overlaps the left border */
}

.right-icon {
    margin-right: -2px; /* Slightly overlaps the right border */
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Remove the pseudo-elements as they're no longer needed */
.header-icon::before,
.header-icon::after {
    content: none;
}

@media (max-width: 768px) {
    .projects-header h2 {
        font-size: 24px;
        padding: 0 10px;
    }

    .header-icon {
        width: 30px;
        height: 30px;
    }

    .header-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .projects-header h2 {
        font-size: 20px;
    }

    .header-icon {
        width: 24px;
        height: 24px;
    }

    .header-icon svg {
        width: 14px;
        height: 14px;
    }
}

.custom-icon {
    width: 18px !important; /* Adjust to match your Font Awesome icons */
    height: 18px !important; /* Maintains aspect ratio */
    vertical-align: middle; /* Aligns with text */
    margin-top: -2px; /* Fine-tune vertical alignment if needed */
    display: inline-block;
}

.projects {
    position: relative; /* Set relative position for the section */
    padding: 100px 0;
    background-color: #0f0f11;
    border-top: 1px solid #8c8c8e;
    overflow: hidden; /* Prevent overflow from animated circles */
}

.projects h2:not(.projects-header h2) {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #fff;
}

/* Featured Projects */
.featured-projects {
    margin-bottom: 60px;
}

.featured-label,
.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.featured-label span,
.section-label span {
    background: #0f0f11;
    color: #8c8c8e;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.featured-label::before,
.section-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8c8c8e, transparent);
    z-index: 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card.featured {
    position: relative;
    background: linear-gradient(135deg, #1a1a1d, #242428);
    border: 1px solid #3a3a3e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8c8c8e, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card.featured:hover::before {
    opacity: 1;
}

.project-card.featured:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #8c8c8e;
}

/* All Projects Section */
.all-projects {
    margin-top: 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: #1a1a1d;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #2a2a2d;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #3a3a3e;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin-top: 0;
    font-size: 24px;
    color: #fff;
}

.project-card p {
    margin-bottom: 10px;
    color: #8c8c8e;
    flex-grow: 1;
}

.project-tags {
    margin-top: auto;
}

.tag {
    display: inline-block;
    background: #8c8c8e;
    color: #0f0f11;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.tag:hover {
    background: #fff;
}

/* Winner tag styling */
.tag.winner {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #0f0f11;
    font-weight: 700;
    animation: winnerGlow 2s infinite alternate;
}

@keyframes winnerGlow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}

/* Styles for disabled project card */
.project-card.disabled {
    position: relative;
    pointer-events: auto;
    cursor: default;
}

.project-card.disabled .card-content {
    filter: blur(1.7px);
}

.project-card.disabled img {
    filter: grayscale(100%) blur(2px);
}

.project-card.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 17, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card.disabled:hover .disabled-overlay {
    opacity: 1;
}

.disabled-overlay p {
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 18px;
    max-width: 80%;
}

/* Footer */
footer {
    background-color: #0f0f11;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #8c8c8e;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location {
    font-size: 14px;
    color: #8c8c8e;
}

.social-links a {
    color: #8c8c8e;
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    .nav-links a {
        margin-left: 10px;
        padding: 6px 12px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content .subtitle {
        font-size: 24px;
    }
    
    .hero-content .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .projects h2 {
        font-size: 28px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-card p {
        font-size: 14px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    footer .container {
        flex-direction: column;
        align-items: center;
    }

    .location {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .subtitle {
        font-size: 18px;
    }
    
    .hero-content .hero-description {
        font-size: 14px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 180px;
    }
}