:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

/* Header styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

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

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Portfolio grid styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.project-window {
    position: relative;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    height: 250px;
}

.project-window:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.project-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-slide.active {
    opacity: 1;
}

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

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
}

.project-window:hover .slide-arrow {
    opacity: 1;
}

.slide-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slide-arrow.prev {
    left: 10px;
}

.slide-arrow.next {
    right: 10px;
}

.project-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    font-weight: 600;
}

/* About section styles */
.about-section {
    padding: 4rem 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.open {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalOpen 0.4s;
    max-height: 90vh;
}

@keyframes modalOpen {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

.modal-header h2 {
    color: var(--dark-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.modal-media-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
}

.modal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.modal-slide.active {
    opacity: 1;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.modal-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-arrow.prev {
    left: 10px;
}

.modal-arrow.next {
    right: 10px;
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slide-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-color);
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.slide-indicator.active {
    opacity: 1;
    background-color: var(--primary-color);
}

.project-description {
    color: var(--dark-color);
    line-height: 1.2;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    background-color: #f0f0f0;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-links a {
    background-color: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.project-links a:hover {
    background-color: var(--secondary-color);
}

/* Footer styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 250px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .slide-arrow {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 576px) {
    header {
        padding: 1.5rem 0;
    }
    
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    nav a {
        margin: 0.5rem;
    }
    
    .project-window {
        height: 200px;
    }
    
    .about-image {
        width: 100%;
    }
    
    .modal-media-container {
        height: 300px;
    }
    
    .project-links {
        flex-direction: column;
    }
}