/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f1e8;
}

/* ===== HEADER ===== */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== NAVIGATION ===== */
nav {
    background: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 4px;
}

nav a:hover {
    color: #667eea;
    background: rgba(255,255,255,0.1);
}

nav a.active {
    background: #667eea;
    color: white;
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.description-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.description-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.description-box ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.description-box li {
    margin-bottom: 0.5rem;
}

/* ===== SCHEDULE PAGE - TABLE STYLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    font-size: 1.1rem;
}

tbody tr:hover {
    background-color: #f8f9fa;
}

.week-cell {
    font-weight: 600;
    color: #2c3e50;
}

/* Color coding for different types of weeks */
tr[data-type="principles"] {
    border-left: 4px solid #667eea;
}

tr[data-type="design"] {
    border-left: 4px solid #48bb78;
}

tr[data-type="fabrication"] {
    border-left: 4px solid #ed8936;
}

tr[data-type="electronics"] {
    border-left: 4px solid #e53e3e;
}

tr[data-type="programming"] {
    border-left: 4px solid #9f7aea;
}

tr[data-type="systems"] {
    border-left: 4px solid #38b2ac;
}

tr[data-type="project"] {
    border-left: 4px solid #d69e2e;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 30px;
    height: 20px;
    border-radius: 3px;
}

/* ===== ABOUT ME PAGE STYLES ===== */
.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: linear-gradient(135deg, #e8d5c4 0%, #f5e6d8 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 5px solid #b08968;
}

.profile-header h3 {
    font-size: 1.2rem;
    color: #8b6f47;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.name {
    font-size: 1.8rem;
    color: #5d4037;
    margin: 0.5rem 0;
    font-weight: bold;
}

.location, .age {
    color: #6d4c41;
    font-size: 1.1rem;
    margin: 0.3rem 0;
}

.intro-box, .motto-box {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.intro-box h4, .motto-box h4 {
    color: #5d4037;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dotted #b08968;
}

.motto {
    font-style: italic;
    font-size: 1.2rem;
    color: #8b6f47;
    text-align: center;
    font-weight: 500;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-section h4 {
    color: #5d4037;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px dotted #b08968;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-section p {
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.info-section strong {
    color: #5d4037;
}

.drives-list, .cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drives-list li, .cert-list li {
    padding: 0.7rem 0 0.7rem 2rem;
    position: relative;
    color: #4a4a4a;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.drives-list li:last-child, .cert-list li:last-child {
    border-bottom: none;
}

.drives-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #b08968;
    font-weight: bold;
    font-size: 1.2rem;
}

.cert-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7cb342;
    font-weight: bold;
    font-size: 1.2rem;
}

.passion-box {
    background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
    border-left: 4px solid #b08968;
    font-style: italic;
}

.passion-box p {
    color: #5d4037;
    font-size: 1.05rem;
}

/* ===== ASSIGNMENTS PAGE STYLES ===== */
.assignment-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.assignment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.assignment-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.assignment-date {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.btn-primary, .btn-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

/* ===== FINAL PROJECT PAGE STYLES ===== */
.project-section {
    margin-bottom: 2rem;
}

.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.file-list a:hover {
    color: #5568d3;
    text-decoration: underline;
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #666;
    margin: 0.3rem 0;
}

.small-text {
    font-size: 0.9rem;
    color: #888;
}

.contact-card a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #5568d3;
    text-decoration: underline;
}

.social-links {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-btn:hover {
    background: #5568d3;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.social-btn span {
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-left {
        order: 1;
    }
    
    .about-right {
        order: 2;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.7rem;
    }
    
    .legend {
        flex-direction: column;
        gap: 0.8rem;
    }

    .profile-card {
        padding: 1.5rem;
    }
    
    .name {
        font-size: 1.5rem;
    }
    
    .info-section {
        padding: 1.2rem;
    }

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

    .social-buttons {
        flex-direction: column;
    }

    .assignment-links {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
