/* Custom Enhancements for Portfolio */

/* CTA Buttons Styles */
.cta-section {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center;   /* Centers items horizontally */
    justify-content: center; /* Centers items vertically (optional) */
    gap: 0.75rem; /* Adds space between the items (adjust as needed) */
    
    margin: 3rem 0;
    padding: 2rem;
    background: #f5f3ea;
    border-radius: 8px;
    color: #000000;
}
.cta-section h2,
.cta-section p {
    margin: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #000000;
    color: #FDFDFA;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #7A522D;
    color: #FDFDFA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: #000000;
    color: #FDFDFA;
    border-color: #000000;
}

.cta-button.secondary:hover {
    background: #7A522D;
    color: #FDFDFA;
}

/* Enhanced Card Layout */
.posts {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    padding: 2rem !important;
    width: 100% !important;
    margin: 2rem 0 !important;
    -moz-flex-wrap: unset !important;
    -webkit-flex-wrap: unset !important;
    -ms-flex-wrap: unset !important;
    flex-wrap: unset !important;
}

.project-card {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    border-left-width: 0 !important;
    border-top-width: 0 !important;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-card .image {
    position: relative;
    overflow: hidden;
    height: 350px;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.project-card .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure images load properly */
.project-card .image img {
    opacity: 1 !important;
    visibility: visible !important;
}

.project-card .image img:not([src]), 
.project-card .image img[src=""] {
    opacity: 0;
}

/* Simple hover effect */
.project-card:hover .image img {
    transform: scale(1.05) !important;
}

.project-card .content {
    padding: 1.5rem;
}

.project-card header h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-card header h2 a {
    color: #333;
    text-decoration: none;
}

.project-card header h2 a:hover {
    color: #667eea;
}

.project-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Technology Icons */
.tech-stack {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.tech-icon {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.tech-icon.languages {
    background: #3776ab;
    color: white;
}

.tech-icon.javascript {
    background: #f7df1e;
    color: #333;
}

.tech-icon.react {
    background: #61dafb;
    color: #333;
}

.tech-icon.tensorflow {
    background: #ff6f00;
    color: white;
}

.tech-icon.cloud_tools {
    background: #232f3e;
    color: white;
}

.tech-icon.development_tools {
    background: #2496ed;
    color: white;
}

.tech-icon.python_packages {
    background: #e97627;
    color: white;
}

.tech-icon.visualization_tools {
    background: #f2c811;
    color: #333;
}

.tech-icon.methodologies {
    background: #25643f;
    color: white;
}

/* Enhanced Action Buttons */
.project-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.project-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f5f3ea;
    color: #000000;
}

.project-btn:hover {
    background: #7A522D;
    color: #FDFDFA;
    transform: translateY(-1px);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 2rem 0;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #f5f3ea;
    background: #f5f3ea;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #7A522D;
    color: #FDFDFA;
}

.pagination-btn.active {
    background: #f5f3ea;
    color: #FDFDFA;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    margin: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .posts {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 250px;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .project-btn {
        text-align: center;
        justify-content: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .project-card .image {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .posts {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .project-card {
        margin: 0 !important;
    }
    
    .project-card .image {
        height: 180px;
    }
}

/* Hide pagination elements by default - will be shown by JavaScript */
.pagination {
    display: none;
}

.pagination.active {
    display: flex;
}

/* Project filtering */
.project-card {
    display: block;
}

.project-card.hidden {
    display: none;
}

/* Additional image display fixes */
.project-card .image {
    background-color: #f8f9fa !important;
    min-height: 250px !important;
    display: block !important;
}

.project-card .image img {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Footer styling to match CTA colors */
#footer {
    background-color: #f5f3ea !important;
    color: #000000 !important;
    border: 1px #f5f3ea !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Project page footer - full width */
.project-page #footer {
    width: 100% !important;
    max-width: none !important;
}

/* Index page footer - maintain original width */
.index-page #footer {
    width: calc(100% - 4rem) !important;
    max-width: 72rem !important;
    margin: 0 auto !important;
}

/* Index page specific styling to match project footer appearance */
.index-page #footer > section.split.contact > section {
    padding: 2rem 3rem !important;
    min-height: 100px !important;
}

.index-page #footer > section.split.contact > section:not(:last-child) {
    border-bottom: none !important;
}

.index-page #footer > section.split.contact > section h3 {
    min-width: 90px !important;
    margin-right: 2rem !important;
}

#footer h3 {
    color: #000000 !important;
}

#footer a {
    color: #000000 !important;
    border-bottom: none !important;
}

#footer a:hover {
    background-color: #7A522D !important;
    color: #FDFDFA !important;
}

/* Copyright section styling */
#copyright {
    background: transparent !important;
    background-color: transparent !important;
    color: #f5f3ea !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

#copyright ul {
    text-align: center !important;
}

#copyright li {
    color: #f5f3ea !important;
}

#copyright a {
    color: #f5f3ea !important;
    border-bottom: none !important;
}

#copyright a:hover {
    background-color: #7A522D !important;
    color: #FDFDFA !important;
}

/* Remove borders from non-project elements */
.split.contact {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.split.contact section {
    border: none !important;
    border-right: none !important;
}

/* Add horizontal gray lines between footer sections */
#footer > section.split.contact {
    display: flex !important;
    flex-direction: column !important;
}

#footer > section.split.contact > section {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 80px !important;
    padding: 1.5rem 2rem !important;
    margin: 0 !important;
}

#footer > section.split.contact > section:not(:last-child) {
    border-bottom: none !important;
}

#footer > section.split.contact > section h3 {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    margin-right: 1.5rem !important;
    min-width: 80px !important;
    flex-shrink: 0 !important;
    text-align: left !important;
}

#footer > section.split.contact > section p,
#footer > section.split.contact > section ul {
    margin: 0 !important;
    flex-grow: 1 !important;
}

/* Override any responsive layout that might be causing differences */
@media screen and (max-width: 1680px) {
    #footer > section.split.contact > section {
        flex-direction: row !important;
        align-items: center !important;
    }
}

@media screen and (max-width: 1280px) {
    #footer > section.split.contact > section {
        flex-direction: row !important;
        align-items: center !important;
    }
}

@media screen and (max-width: 980px) {
    #footer > section.split.contact > section {
        flex-direction: row !important;
        align-items: center !important;
    }
}

/* Fix social icons alignment in footer */
#footer .icons.alt {
    text-align: left !important;
    justify-content: flex-start !important;
}

#footer .icons.alt li {
    display: inline-block !important;
    margin-right: 1rem !important;
}

/* Keep project card borders - be specific about project containers */
.posts .project-card {
    border: 1px solid #ddd !important;
}
