/* Sun icon color in dark theme */
body.dark-theme .sun-icon {
    color: #fde047; /* light yellow */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "JetBrains Mono", monospace;
    line-height: 1.6;
    color: #000000;
    background-color: #f5f5f5;
    transition: background 0.5s ease, color 0.5s ease;
}

body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

/* Header & Navigation */
header {
    background-color: #e0e0e0;
    padding: 1rem;
    border-bottom: 1px solid #d0d0d0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

body.dark-theme header {
    background-color: #2d2d2d;
    border-bottom-color: #404040;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

body.dark-theme .logo a {
    color: #ffffff;
}

.logo a:hover {
    color: #4fc3f7;
    text-decoration: underline;
}

.theme-toggle {
    margin-right: 2rem;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

body.dark-theme .theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sun-icon, .moon-icon {
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding: 2rem;
    padding-top: 6rem;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
}

.introduction h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #4fc3f7;
}

.introduction p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

body.dark-theme .introduction p {
    color: #cccccc;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.experience-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.experience-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
}

.experience-icon::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 120px;
    background: #4fc3f7;
    opacity: 0.3;
}

.buildspace-icon {
    background: #7c3aed;
    color: white;
}

.gsoc-icon {
    background: #f97316;
    color: white;
}

.experience-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #4fc3f7;
}

.experience-content .role {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1.1rem;
}

.experience-content .dates {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: 500;
}

.experience-content .description {
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
}

/* Dark theme experience styles */
body.dark-theme .experience-content .role {
    color: #e5e7eb;
}

body.dark-theme .experience-content .dates {
    color: #9ca3af;
}

body.dark-theme .experience-content .description {
    color: #cccccc;
}

/* Responsive design for experience */
@media (max-width: 1024px) {
    .experience-grid {
        gap: 2rem;
    }
    
    .experience-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .experience-icon::after {
        height: 100px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0.5rem;
    }

    nav {
        padding: 0 0.25rem;
    }

    .logo a {
        font-size: 1rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-icon::after {
        display: none;
    }
    
    .introduction h1 {
        font-size: 2rem;
    }
    
    .introduction p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .introduction h1 {
        font-size: 1.8rem;
    }
    
    .introduction p {
        font-size: 1rem;
    }
    
    .experience-content h3 {
        font-size: 1.3rem;
    }
    
    .experience-content .role {
        font-size: 1rem;
    }
    
    .experience-content .description {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
