/* Projects Page Styles */
.page-header {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.page-header .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-header .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Clash Display', sans-serif;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Projects Section */
.projects-details {
    padding: 80px 0;
    background: #fff;
}

.project-card {
    display: flex;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.project-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    flex: 0 0 60%;
    padding: 40px;
}

.project-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-family: 'Clash Display', sans-serif;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-card {
        flex-direction: column;
    }

    .project-image {
        flex: 0 0 300px;
    }

    .project-content {
        flex: 1;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 50vh;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .project-content h2 {
        font-size: 1.5rem;
    }

    .project-details {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .project-content {
        padding: 20px;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.project-modal-content {
    position: relative;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 95%;
    max-width: 1400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

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

.close-project-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-project-modal:hover {
    color: #000;
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.modal-gallery {
    position: relative;
    height: 100%;
    min-height: 650px;
    background: #000;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal-gallery img.active {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.gallery-nav button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-nav button.active {
    background: #fff;
    transform: scale(1.2);
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    color: #fff;
    font-size: 20px;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.gallery-arrow.prev {
    left: 20px;
}

.gallery-arrow.next {
    right: 20px;
}

.modal-info {
    padding: 35px 30px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 650px;
}

.modal-info h2 {
    font-size: 2.2em;
    color: #333;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
}

.modal-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    border-radius: 2px;
}

.modal-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1em;
    padding-right: 15px;
}

.modal-info h3 {
    color: #333;
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-info ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 5px;
}

.modal-info ul li {
    padding: 10px 15px;
    color: #555;
    position: relative;
    padding-left: 35px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    border: 1px solid #eee;
}

.modal-info ul li:hover {
    background: #f0f0f0;
    transform: translateX(5px);
    border-color: #4CAF50;
}

.modal-info ul li:before {
    content: "✓";
    color: #4CAF50;
    font-size: 1.1em;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

/* Responsive styles for modal */
@media (max-width: 1024px) {
    .project-modal-content {
        grid-template-columns: 1fr;
        margin: 0;
        width: 95%;
        max-width: 900px;
    }

    .modal-gallery {
        min-height: 500px;
    }

    .modal-info {
        height: auto;
        padding: 30px 25px;
    }

    .modal-info h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .project-modal-content {
        width: 98%;
        margin: 0;
        max-width: 600px;
    }

    .modal-gallery {
        min-height: 350px;
    }

    .modal-info {
        padding: 25px 20px;
    }

    .modal-info h2 {
        font-size: 1.8em;
    }

    .modal-info h3 {
        font-size: 1.1em;
    }

    .modal-info ul li {
        padding: 8px 12px;
        padding-left: 32px;
        font-size: 0.9em;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Make project cards clickable */
.project-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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