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

body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Inter', monospace;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: auto;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    border: 2px solid #e74c3c;
    padding: 20px;
    background: linear-gradient(45deg, #2c2c2c 0%, #3a3a3a 100%);
}

.header h1 {
    color: #2196F3;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 2px 2px 4px #27ae60;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.header .subtitle {
    color: #f8f9fa;
    font-size: 16px;
    font-weight: 600;
}

/* Navigation */
.nav {
    text-align: center;
    margin-bottom: 40px;
}

.nav ul {
    list-style: none;
    display: inline-flex;
    background: #2c2c2c;
    border: 2px solid #27ae60;
    padding: 10px;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: #2196F3;
    border: 1px solid #2196F3;
    background: #3a3a3a;
    text-shadow: 0 0 8px #2196F3;
}

/* Main Content */
.main {
    animation: fadeIn 0.5s ease-in;
}

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

/* Home Section */
.intro {
    background: #2c2c2c;
    border: 2px solid #e74c3c;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.intro h2 {
    color: #2196F3;
    font-size: 24px;
    margin-bottom: 20px;
    text-decoration: underline;
}

.intro p {
    color: #f8f9fa;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Skills Grid */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.skill-box {
    background: #2c2c2c;
    border: 2px solid;
    padding: 20px;
    text-align: center;
}

.skill-box.engineering {
    border-color: #e74c3c;
}

.skill-box.design {
    border-color: #2196F3;
}

.skill-box.pcb {
    border-color: #27ae60;
}

.skill-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-box.engineering h3 {
    color: #e74c3c;
}

.skill-box.design h3 {
    color: #2196F3;
}

.skill-box.pcb h3 {
    color: #27ae60;
}

/* Project List */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project {
    background: #2c2c2c;
    border: 2px solid;
    padding: 40px;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
}

.project.engineering {
    border-color: #e74c3c;
}

.project.design {
    border-color: #2196F3;
}

.project.pcb {
    border-color: #27ae60;
}

.project-image {
    width: 100%;
    background: #3a3a3a;
    border: 1px solid #555;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b3b8;
    font-style: italic;
    flex-shrink: 0;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

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

.project h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.project.engineering h3 {
    color: #e74c3c;
}

.project.design h3 {
    color: #2196F3;
}

.project.pcb h3 {
    color: #27ae60;
}

.project p {
    color: #f8f9fa;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 16px;
    flex-grow: 1;
}

.project .tech {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

/* Contact Section */
.contact-info {
    background: #2c2c2c;
    border: 2px solid #27ae60;
    padding: 30px;
    text-align: center;
}

.contact-info h2 {
    color: #2196F3;
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-links a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #e74c3c;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.contact-links a:hover {
    color: #2196F3;
    border-color: #2196F3;
    background: #3a3a3a;
    text-shadow: 0 0 8px #2196F3;
}

/* Footer */
.footer {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #3a3a3a;
    color: #b0b3b8;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .header h1 {
        font-size: 24px;
    }
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    margin: 0 0 20px 0;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.slideshow-container .slides {
    position: relative;
}

.slideshow-container .slide {
    display: none !important;
    text-align: center;
}

.slideshow-container .slide.active {
    display: block !important;
}

.slideshow-container .slide img {
    width: 100% !important;
    height: auto !important;
    max-height: 1000px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
    transform: none !important;
    transition: none !important;
}

/* Navigation arrows */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 30px 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    user-select: none;
    transition: background-color 0.3s;
    z-index: 10;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Make slideshow responsive */
@media (max-width: 768px) {
    .nav-btn {
        padding: 20px 15px;
        font-size: 20px;
        height: 60px;
    }
}
