/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Project Card Styles */
.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Tab Button Styles */
.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Tabs Container Styles */
.tabs-container-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.tabs-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    margin: 0 auto;
    position: relative;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scroll-behavior: smooth;
    cursor: grab;
}

.tabs-container:active {
    cursor: grabbing;
}

.tabs-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Scroll arrows */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    color: #333;
    transition: all 0.2s ease;
}

.scroll-arrow:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
    left: 10px;
    display: none; /* Hidden by default */
}

.scroll-arrow.right {
    right: 10px;
}

@media (max-width: 768px) {
    .tabs-container {
        padding: 0.5rem 40px; /* Make space for arrows */
    }
    
    .scroll-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

.tabs-scroll {
    display: inline-flex;
    min-width: 100%;
    padding: 0.25rem 1rem;
    gap: 0.5rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
}

/* Desktop/Laptop Styles */
@media (min-width: 1024px) {
    .tabs-container {
        max-width: 80%;
        display: flex;
        justify-content: center;
    }
    
    .tabs-scroll {
        background: white;
        border-radius: 0.75rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        padding: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1.25rem;
        transition: all 0.2s ease;
    }
    
    .tab-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet and Mobile Styles */
@media (max-width: 1023px) {
    .tabs-container {
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 1rem 40px; /* Make space for arrows */
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .tabs-scroll {
        display: inline-flex;
        padding: 0.5rem 1rem;
        width: auto;
        min-width: max-content;
    }
    
    .tab-btn {
        padding: 0.75rem 1.25rem;
        min-width: max-content;
        white-space: nowrap;
        flex-shrink: 0;
        justify-content: center;
        margin: 0 0.25rem;
        font-size: 0.9rem;
        scroll-snap-align: start;
        border-radius: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
    }
    
    .tab-btn.active {
        background: #3b82f6;
        color: white;
        font-weight: 600;
    }
    
    .tab-btn i {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
    
    .tab-btn span {
        font-size: 0.9rem;
    }
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

/* Button Container Styles */
.project-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Details Button Styles */
.details-button {
    justify-self: center;
    min-width: 150px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

/* First Row Buttons */
.first-row-button {
    min-width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Mobile Button Adjustments */
@media (max-width: 768px) {
    .project-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 0.75rem;
        min-width: 100px;
        font-size: 0.875rem;
    }
    
    .details-button {
        min-width: 120px;
        padding: 0.625rem 1rem;
    }
}

/* Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tab-btn.active:hover {
    background: #2563eb;
    transform: translateY(0);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mobile Button Adjustments */
@media (max-width: 768px) {
    .project-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.5rem 0.75rem;
        min-width: 100px;
        font-size: 0.875rem;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    color: #1f2937;
    line-height: 1.6;
}

.modal-body h2 {
    color: #111827;
    margin-bottom: 1.5rem;
}

.modal-body h3 {
    color: #111827;
    margin-bottom: 0.75rem;
}

.modal-body ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal-header {
        padding-bottom: 0.75rem;
    }
    
    .modal-close {
        font-size: 1.25rem;
    }
}

.btn-primary {
    background-color: white;
    color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-github, .btn-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(.4,2,.3,1);
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1.5px solid transparent;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-github {
    background: linear-gradient(90deg, #232526 0%, #414345 100%);
    color: white;
}

.btn-github:hover {
    background: linear-gradient(90deg, #232526 0%, #3a3a3a 100%);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px -2px #23252644, 0 0 0 3px #23252622;
    border-color: #232526;
}

.btn-live {
    background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
    color: white;
}

.btn-live:hover {
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 24px -2px #3b82f644, 0 0 0 3px #3b82f622;
    border-color: #2563eb;
}

.btn-github i, .btn-live i {
    transition: transform 0.35s cubic-bezier(.4,2,.3,1);
}

.btn-github:hover i, .btn-live:hover i {
    transform: translateX(4px) scale(1.15);
}

/* Add margin between buttons */
.flex.gap-4 .btn-github, .flex.gap-4 .btn-live {
    margin-right: 0.5rem;
}
.flex.gap-4 .btn-live:last-child {
    margin-right: 0;
}

/* Tech Stack Styles */
.tech-stack {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.tech-stack-title {
    color: #4b5563;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #4b5563;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.tech-tag i {
    margin-right: 0.375rem;
    font-size: 1rem;
}

/* Tab Styles */
.tab-btn {
    color: #4b5563;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: #1f2937;
}

.tab-btn.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
    transform: scaleX(1);
    transition: transform 0.3s ease-in-out;
}

/* Tab Content Animation */
.tab-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        margin: 0 1rem;
    }
    
    .btn-github, .btn-live {
        padding: 0.5rem 1rem;
    }

    .hero-banner {
        padding: 3rem 1rem;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }
} 