* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
    border-bottom: 1px solid #2a2a3e;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.intro-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    /* ADJUST THESE VALUES to center your face in the circle */
    /* First value: horizontal position (0% = left, 50% = center, 100% = right) */
    /* Second value: vertical position (0% = top, 50% = center, 100% = bottom) */
    object-position: 00% 70%;
    border: 4px solid #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
}

.intro-text h2 {
    font-size: 1.3rem;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 400;
}

.intro-text p {
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
    line-height: 1.8;
}

/* Projects Section */
.projects-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.section-description {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Limit to 3 cards per row on larger screens */
@media (min-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2a2a3e;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 350px;
    background-color: #0f0f1e;
    overflow: hidden;
}

/* Subtle gradient overlay on images */
.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 5;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjust video positioning to show left side content */
.slide video {
    object-position: 0% 50%;
}

.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {opacity: 0.6}
    to {opacity: 1}
}

/* Zoom effect for images */
.zoom.active img {
    animation: zoomEffect 5s ease-in-out forwards;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Slideshow Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 212, 255, 0.8);
}

.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* Project Info */
.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
}

.project-info p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.project-link {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #00a8cc;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #2a2a3e;
}

footer p {
    color: #808080;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }

    .intro-text h1 {
        font-size: 2.2rem;
    }

    .intro-text h2 {
        font-size: 1.1rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding: 50px 0;
    }

    .projects-section {
        padding: 50px 0;
    }

    .intro-text h1 {
        font-size: 1.8rem;
    }

    .intro-text h2 {
        font-size: 1rem;
    }

    .slideshow-container {
        height: 250px;
    }
}

@media (max-width: 450px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
