* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
/* Add animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

body {
    background-color: #121212;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    margin-top: 5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header p {
    color: #888;
}

.search-section {
    margin-bottom: 2rem;
    animation: slideIn 0.8s ease-out;
}

.search-bar {
    width: 100%;
    padding: 1rem;
    background: #1e1e1e;
    border: none;
    border-radius: 8px;
    color: white;
    margin-bottom: 1rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #1e1e1e;
    border: none;
    border-radius: 20px;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.filter-btn:hover {
    background: #2e2e2e;
}

.filter-btn:hover::after {
    left: 100%;
}

.filter-btn.active {
    background: #ffd700;
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: scaleIn 0.5s ease-out;
    /* animation-fill-mode: both; */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #888;
    margin-bottom: 1rem;
}

.view-project-btn {
    background: #000000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-project-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: 0.5s;
}

.view-project-btn:hover {
    background: #ffd700;
}
.view-project-btn:hover::after {
    left: 100%;
}
/* Contact Form */
.contact-section {
    background: #1e1e1e;
    padding: 4rem 5%;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-section p {
    color: #888;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #888;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: #2e2e2e;
    color: white;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    outline: none;
}

.submit-btn {
    background-color: #6a6868;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.submit-btn:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
}


/* .connect-section {
    background: #1e1e1e;
    padding: 3rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.connect-section h2 {
    margin-bottom: 1.5rem;
}

.connect-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #888;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #2e2e2e;
    border: none;
    border-radius: 6px;
    color: white;
} */

.cta-section {
    text-align: center;
    margin-bottom: 2rem;
   
}

.cta-btn {
    margin-top: 2rem;
    background: #ffd700;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #ffd700;
}
/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        gap: 1.5rem;
    }
}

/* @media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .connect-section {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .filter-btn {
        white-space: nowrap;
    }
} */

/* Base Styles */
.project-card {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px; /* Adjust based on layout */
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Big Sideways Ribbon */
.ribbon {
    position: absolute;
    top: 10%; 
    left: -25%; 
    width: 150%;
    background: red;
    color: white;
    padding: 15px 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-20deg);
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) { /* Tablets */
    .ribbon {
        font-size: 18px;
        padding: 12px 0;
        transform: rotate(-18deg);
    }
}

@media (max-width: 480px) { /* Mobile Phones */
    .ribbon {
        font-size: 16px;
        padding: 10px 0;
        transform: rotate(-15deg);
    }
}
