/* Portfolio Page Specific Styles */

.portfolio-header {
    background: linear-gradient(90deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.portfolio-header .container {
    position: relative;
    z-index: 1;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f1f5f9;
}

.filter-btn.active {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* Portfolio Card */
.portfolio-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.8));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #2575fc;
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: scale(0);
}

.portfolio-card:hover .portfolio-link {
    transform: scale(1);
}

.portfolio-link:hover {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
}

.portfolio-category {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.portfolio-category .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

.portfolio-title {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 600;
    color: #1e293b;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 15px;
}

/* Portfolio Detail */
.portfolio-detail {
    padding: 80px 0;
}

.portfolio-detail-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.portfolio-detail-img img {
    width: 100%;
    height: auto;
}

.portfolio-detail-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.portfolio-meta {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.portfolio-meta-item {
    margin-bottom: 15px;
}

.portfolio-meta-item h6 {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.portfolio-meta-item p {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
}

.portfolio-description {
    margin-bottom: 30px;
}

.portfolio-description p {
    margin-bottom: 15px;
    color: #64748b;
    line-height: 1.7;
}

.portfolio-features {
    margin-bottom: 30px;
}

.portfolio-features h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #1e293b;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: #64748b;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #2575fc;
}

.portfolio-gallery {
    margin-top: 40px;
}

.portfolio-gallery h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1e293b;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Related Projects */
.related-projects {
    padding: 60px 0;
    background-color: #f8fafc;
}

.related-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e293b;
    text-align: center;
}

/* Animation for portfolio items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .portfolio-header {
        padding: 80px 0 40px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .portfolio-detail-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .portfolio-header {
        padding: 60px 0 30px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .portfolio-detail-content h2 {
        font-size: 1.5rem;
    }
    
    .portfolio-meta {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Gallery Specific Styles */
.gallery-item .card-img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 76, 126, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .card-overlay {
    opacity: 1;
}

/* Filter Buttons */
.filter-buttons .btn {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
}

.filter-buttons .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Enhanced Project Hero Section */
.project-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #2b4c7e, #1a365d);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

/* Parallax Background */
.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/img2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 76, 126, 0.9), rgba(26, 54, 93, 0.95));
    z-index: 1;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Z-index for content */
.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Minimum viewport height */
.min-vh-60 {
    min-height: 60vh;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease forwards;
}

/* Hero Title with Gradient */
.hero-title {
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s forwards;
}

/* Stats Counter Styling */
.hero-stats {
    animation: fadeInUp 1s ease 0.4s forwards;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Buttons */
.hero-buttons {
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 3D Project Showcase */
.hero-image-container {
    position: relative;
    perspective: 1000px;
    height: 400px;
    animation: fadeIn 1s ease 0.8s forwards;
}

.project-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.showcase-item {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 20%;
    left: 10%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-item-1 {
    transform: translateZ(100px);
}

.showcase-item-2 {
    transform: rotateY(120deg) translateZ(100px);
}

.showcase-item-3 {
    transform: rotateY(240deg) translateZ(100px);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    width: 100%;
    height: 100px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .project-hero {
        min-height: 70vh;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .project-hero {
        min-height: 60vh;
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
    }
}

/* Make project filter section ID-accessible */
.project-filter {
    scroll-margin-top: 80px;
}

#project-filter {
    scroll-behavior: smooth;
}
/* Enhanced Project Hero Section */
.project-hero {
    min-height: 80vh;
    background: linear-gradient(135deg, #2b4c7e, #1a365d);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
}

/* Parallax Background */
.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/img2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 76, 126, 0.9), rgba(26, 54, 93, 0.95));
    z-index: 1;
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Z-index for content */
.z-index-2 {
    position: relative;
    z-index: 2;
}

/* Minimum viewport height */
.min-vh-60 {
    min-height: 60vh;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease forwards;
}

/* Hero Title with Gradient */
.hero-title {
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    display: inline-block;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s forwards;
}

/* Stats Counter Styling */
.hero-stats {
    animation: fadeInUp 1s ease 0.4s forwards;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Buttons */
.hero-buttons {
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* 3D Project Showcase */
.hero-image-container {
    position: relative;
    perspective: 1000px;
    height: 400px;
    animation: fadeIn 1s ease 0.8s forwards;
}

.project-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 20s infinite linear;
}

.showcase-item {
    position: absolute;
    width: 80%;
    height: 60%;
    top: 20%;
    left: 10%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-item-1 {
    transform: translateZ(100px);
}

.showcase-item-2 {
    transform: rotateY(120deg) translateZ(100px);
}

.showcase-item-3 {
    transform: rotateY(240deg) translateZ(100px);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    width: 100%;
    height: 100px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes rotate {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .project-hero {
        min-height: 70vh;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .project-hero {
        min-height: 60vh;
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 20px;
    }
}

/* Make project filter section ID-accessible */
.project-filter {
    scroll-margin-top: 80px;
}

#project-filter {
    scroll-behavior: smooth;
}